Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Smartclient 10.1 Issue - Setting width of DynamicForm to 100%

    Hi,
    I found a bug in the latest version of SmartClient (10.1.) which was not present in SmartClient 10.0. (tested with Firefox and Chrome). I've tested this against the latest nightly SmartClient_v101p_2015-12-16_Pro.

    When I add a ToolbarItem to a form inside a window and then assign a percentage as width to said ToolbarItem, the window won't open anymore with SmartClient 10.1. There is still no problem, if a number of pixels is assigned instead. Just with the percentage string as shown in the example below:
    Code:
    isc.VLayout.create({
        "members" : [
            isc.ToolStrip.create({
                "members" : [
                    isc.Button.create({
                        "width" : 200,
                        "title" : "open window with error",
                        "click" : function () {
                            isc.Window.create({
                                "width" : 300,
                                "height" : 100,
                                "autoDraw" : true,
                                "autoCenter" : true,
                                "isModal" : true,
                                "items" : [
                                    isc.VLayout.create({
                                        "members" : [
                                            isc.DynamicForm.create({
                                                "fields" : [{
                                                        "type" : "toolbar",
                                                        "width" : "100%",
                                                        "buttons" : [{
                                                                "title" : "Button",
                                                                "type" : "button"
                                                            }
                                                        ]
                                                    }
                                                ]
                                            })
                                        ]
                                    })
                                ]
                            })
                        }
                    }),
                    isc.Button.create({
                        "width" : 200,
                        "title" : "open window without error",
                        "click" : function () {
                            isc.Window.create({
                                "width" : 300,
                                "height" : 100,
                                "autoDraw" : true,
                                "autoCenter" : true,
                                "isModal" : true,
                                "items" : [
                                    isc.VLayout.create({
                                        "members" : [
                                            isc.DynamicForm.create({
                                                "fields" : [{
                                                        "type" : "toolbar",
                                                        "buttons" : [{
                                                                "value" : "Button",
                                                                "type" : "button"
                                                            }
                                                        ]
                                                    }
                                                ]
                                            })
                                        ]
                                    })
                                ]
                            })
                        }
                    })
                ]
            })
        ]
    })
    This is the error shown in firebug, it's only displayed if I close and reopen firebug.
    Code:
    ARN:Log:TypeError: _4.getWidth is not a function
    Stack from error.stack:
        CanvasItem.canvasResized()
        CanvasItem._canvas_resized()
        isc.A.$5y()
        Canvas._completeResizeBy()
        Canvas.resizeBy()
        Canvas.resizeTo()
        Canvas.init()
        Class.createAutoChild()
        CanvasItem._createCanvas()
        Class.invokeSuper()
        Class.Super()
        ToolbarItem._createCanvas()
        [c]Class.init()
        Class.completeCreation()
        DynamicForm.createItem()
        DynamicForm._addItems()
        DynamicForm._setItems()
        DynamicForm.initWidget()
        [c]Class.init()
        Class.completeCreation()
        [c]Class.create()
        .members<.members<.click() @ 2015-12-16_toolbarItem_In_Window.html:39:11
        StatefulCanvas.handleActivate()
        StatefulCanvas.handleClick()
        [c]EventHandler.bubbleEvent()
        [c]EventHandler.handleClick()
        EventHandler._handleMouseUp()
        [c]EventHandler.handleMouseUp()
        [c]EventHandler.dispatch()
        anonymous()
    Best Regards

    #2
    Thanks for the notification. This issue is now resolved. Please try the next nightly build, dated Dec 17 or above

    Regards
    Isomorphic Software

    Comment


      #3
      Tested in the nightly of Dec 17,
      Fix does work, thanks.

      Regards

      Comment

      Working...
      X