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

Does clipping work for static text area items?

$
0
0
I have a form with a read-only text area field. I want the height of the box to be the same as when it is editing (I toggle forms into edit mode via a button). When the content is larger than the height, it should clip (when read-only), but this doesn't seem to work. Can be reproduced with this example:

Code:

    isc.DynamicForm.create({
        fields: [
            { name: 'test', type: 'textarea', canEdit: false, clipStaticValue: true, defaultValue: '1\n2\n3\n4\n5\n6', height: 30, readOnlyDisplay: 'static', staticHeight: 30 }
        ]
    })

I would expect the height of the text area to be 30.

Viewing all articles
Browse latest Browse all 4756