Announcement

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

    buttons in toolbar default to autoFit even if width specified

    SmartClient Version: v12.1p_2020-10-11/Enterprise Deployment (built 2020-10-11)

    Chrome on OSX

    Hello, I noticed that buttons in a toolbar have autoFit:true as default even if a width is specified, see test case:

    Code:
    isc.DynamicForm.create({
        ID: "timeForm",
        wrapItemTitles: false,
        fields: [
                    {
                name: "myToolbar", type: "toolbar",
                buttons: [
                    {
                        width: 250,
                        title: "default"
                    },
                    {
                        width: 250,
                        title: "no autofit",
                        autoFit:false,
                    }
                ]
            }
        ]
    });

    #2
    Hi Claudio
    This is actually working as designed - the buttonConstructor on ToolbarItem is set up to use "AutoFitButton", which sets autoFit to true: https://www.smartclient.com/smartcli...tonConstructor
    We will update the documentation to make this clearer

    Regards
    Isomorphic Software

    Comment


      #3
      Ok, thank you for clarifying that.

      Comment

      Working...
      X