Announcement

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

    ToolbarItem buttons width isn't applied

    SmartClient Version: SNAPSHOT_v12.1d_2019-08-06/AllModules Development Only (built 2019-08-06)

    Chrome on OSX

    Hello, please try this test case:

    Code:
    isc.DynamicForm.create({
        ID: "exampleForm",
        width: 250,
        fields: [
            {
                name: "foo",
                title: "Foo",
                type: "text"
            },
            {
                name: "buttons",
                type: "toolbar",
                height: 30,
                buttons: [
                    {
                        name: "annulla",
                        minWidth: 120,
                        title: "Cancel"
                    },
                    {
                        name: "submit",
                        width: 120,
                        title: "Save"
                    }
                ]
            }
        ]
    });
    you'll see that the "Save" button doesn't have the declared width, while minWidth works, as in the "Cancel" button.

    #2
    This is the expected, documented behavior as you can see by referring to Button.autoFit. However, we've redocumented width and height on StatefulCanvas and its subclasses (e.g. Button.width) so that you're directed to the autoFit docs if you look at the width or height documentation.
    Last edited by Isomorphic; 9 Aug 2019, 14:43.

    Comment

    Working...
    X