solutionModel .verticalAlignment for textArea not working?

Version: 5.1.1 - build 958

Using the solutionModel, I clone a form that contains a text area, then set the properties of that text area. Let’s say I want the text area to have a red background color, white foreground color, and text centered vertically. Here is the code:

        var objectTextArea = objectFormDialog.getField( 'my_textarea' )
        objectTextArea.verticalAlignment = SM_ALIGNMENT.CENTER
        objectTextArea.background = '#FF0000'
        objectTextArea.foreground = '#FFFFFF'

When the code is executed, the text area shows white text on a red background, however, the text is not centered vertically…it is at the top of the text area. I coded based on Servoy’s example for this property, but their example was for a text label. Does anyone know if this works with text areas?

Thanks!

verticalAlignment will not work for any fields. I will remove that also from the solutionModel api
(you also cant set this in the designer, thats always the key, what can you do in the designer and what do you see then in the client)

horizontalAlignment works on textfields but is also not supported on textarea’s

Johan,

Okay…that explains it. I thought it was a new feature accessible from the solutionModel only. Thanks for the quick reply.