Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Wrong width of TextItem in disabled form in toolstrip

$
0
0
Hi there
i have stepped over a bug in using textitem with type date in a DynamicForm in a ToolStrip.

If you initialize the form with disabled: true, the widths of the DateItems are wrong calculated. With "disabled: false" this doesn't occur.
disabled:

enabled:


Code:

isc.ToolStrip.create({
        "width" : "100%",
        "members" :
        [
                isc.DynamicForm.create({
                        "disabled" : true,
                        "numCols" : 4,
                        "width" : 30,
                        "readOnlyDisplay" : "static",
                        "fields" :
                        [{
                                        "title" : "xxx",
                                        "type" : "date",
                                        "width" : 80,
                                        "textAlign" : "left",
                                        "readOnlyDisplay" : "static",
                                        "useTextField" : true,
                                        "showChooserWeekPicker" : true
                                }, {
                                        "title" : "yyy",
                                        "type" : "date",
                                        "width" : 80,
                                        "textAlign" : "left",
                                        "readOnlyDisplay" : "static",
                                        "useTextField" : true,
                                        "showChooserWeekPicker" : true
                                }
                        ],
                        "values" : {}
                })
        ]
})

we are using the latest nightly SmartClient Pro Edition (2015-02-03 nightly), happens in all browsers.

Best regards

Viewing all articles
Browse latest Browse all 4756

Trending Articles