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

How to stretch TextItem height to match title?

$
0
0
Is it possible to make the height of the TextItem to match the height of the label if the label wraps?

This can be illustrated using a slighty modified SmartClient Section example on http://www.smartclient.com/docs/9.1/a/system/reference/SmartClient_Explorer.html#formSections using SmartClient Version: v9.1p_2015-08-21/Pro Deployment (built 2015-08-21) on Chrome 44.0 as follows:

Code:

isc.DynamicForm.create({
        width: 300,
        fields: [
            { defaultValue:"Item", type:"section", sectionExpanded:true,
                itemIds: ["itemName", "description", "price"]
            },
            { name:"itemName", type:"text", title:"Item"},
            { name:"description", type:"text", title:"Very very very very very very very very very very very very very very very very very very long title"},
            { name:"price", type:"float", title:"Price", defaultValue:"low"}
        ]
});

Is there a way we can make the TextItem of the "description" field to match that of the title such that the space between different FormItems remain uniform?

----------------
SmartClient Version: v9.1p_2015-08-21/Pro Deployment (built 2015-08-21)
Windows 7 Chrome 44.0.2403.157

Viewing all articles
Browse latest Browse all 4756

Trending Articles