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

DateItem/DateTimeItem.setUseMask(..) bug

$
0
0
SmartGWT 4.0Pro 02/21/2014 build.

Subsequent calls to DateItem/DateTimeItem.setUseMask(true) causes the field height to increase to height of (textfield + label) when Label orientation is set to TOP. See attached image.

Reason why I am calling setUseMask more than once is to update the mask, after changing locale and setting new date formats in DateUtil.

The following may be the offending code in ISC_Forms.js
Code:

            // If we have a specified height, expand the text box to fill the available space

            if (this.height && (!this.textFieldProperties || !this.textFieldProperties.height))
            {
                textField.height = this.getInnerHeight();
            }


Attached Images
File Type: png DateItemSetUseMaskBug.png (4.3 KB)

Viewing all articles
Browse latest Browse all 4756

Trending Articles