Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi for PHP/Library/Other    [ Add a report in this area ]  
Report #:  130989   Status: Reported
MTextArea ignores "AutoSize = false"
Project:  HTML5 Builder Build #:  XE5 6.0.45.46
Version:    5.0 Submitted By:   Toni Grabmayr
Report Type:  Minor failure / Design problem Date Reported:  4/16/2015 4:01:08 AM
Severity:    Serious / Highly visible problem Last Updated:
Platform:    32 Bit Internal Tracking #:  
Resolution: None  Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
If I create a new Server page, place a Memo on it with AutoSize = false, and add some Lines in a way that the number of Lines added exceeds the Height of the Memo, then the Memo correctly displays with the height given by the Height property, and the scrollbar is activated.
So, all is ok.

Now I want the same on a MOBILE server page.

On a MPage, I do not have access to a Memo, instead I have to use a MTextArea component.
MTextArea has quite the same list of properties as Memo, especially the properties "AutoSize", "Height", and "Lines" are
available here, too.
But it seems that AutoSize = false is ignored. If the number of Lines exceeds the Height of the MTextArea, then the MTextArea will become higher than "Height", and will display all Lines immediately. Consequently, the scrollbar will not be activated.
The Height property is not even changed by this unwanted "AutoSize" function, so that it is not possible to know the really displayed height of the component.
This is annoying, because I want to display some further edit fields (e.g. MEdit) below the MTextArea, and for correct placing of these further edits I have to know the height of the MTextArea.

This behavior is the same even if I use a MEMO within a MOBILE server page (which is possible via Copy&Paste). The Memo will ignore its AutoSize = false setting in this case.
Steps to Reproduce:
(1) Create a new MPage
(2) Place a MTextArea on it (--> AutoSize is false by default)
(3) Add some Lines (number of lines > 10 --> lines do not fit into the text field)
(4) Place a MEdit below the MTextArea
(5) Show in browser => The MTextArea will stretch beyond the MEdit component
Workarounds
Maybe placing of the MTextArea inside of a MPanel would help; not yet tested.
Attachment
None
Comments

None

Server Response from: ETNACODE01