Hi,
I create a TextAreaElement in H5 Script and it takes the "top" and "left" properties and the "MaxLength" constraint other constraint and position properties are ignored.
If I try to create a text area of size "width=20" and "height = 5", but it always created in standard size. Can anyone tell what needs to be done to set the size for the text area?
Code Snippet
-------------------
var textArea = new TextAreaElement();
textArea.Name = name;
textArea.Constraint = {
IsNumeric: false, // Not supported
IsUpper: false,
MaxLength: 400,
MaxDecimals: 0, // Not supported
MaxRow: 10,
MaxColumn: 40
};
textArea.Value = "";
textArea.Position = new PositionElement();
textArea.Position.Top = top;
textArea.Position.Left = left;
textArea.Position.Width = 20;
textArea.Position.Height = 5;
if(this.mode === '5') { // if the mode is display
textArea.IsEnabled = false;
}
this.contentElement.AddElement(textArea);