Shikhar13 / codenameone

Automatically exported from code.google.com/p/codenameone
0 stars 0 forks source link

TextArea rendering problem #231

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Create a new TextArea:  TextArea txtArea = new TextArea("Come on");
   txtArea.setSingleLineTextArea(false);
2.Add it to a flow layout.TextArea will be rendered as two lines
3.Add a space at the end of text, textarea will be redered correctly as one 
line. TextArea txtArea = new TextArea("Come on ");

What is the expected output? 
-It should be drawn as one line.
What do you see instead?
-It was drawn as two lines.

What version of the product are you using? 
- 1.0
On what operating system?
-Test on feature phone simulator

Please provide any additional information below.

Original issue reported on code.google.com by nhanking...@gmail.com on 27 Jun 2012 at 3:49

GoogleCodeExporter commented 9 years ago
I'm not sure if this is fixable, FlowLayout is probably the culprit with this 
issue. There are technical issues related to growing components and FlowLayout.
Assigning to Chen for a second opinion.

Original comment by shai.almog on 28 Jun 2012 at 7:09

GoogleCodeExporter commented 9 years ago
I agree with Shai's comment, flowlayout and growing components simply won't 
work as expected.
There is a conflict between the flowlayout which determines the layout 
according to the components preferred size and the growing TextArea which tries 
to determines how many rows he can display according to the width he has from 
the layout.

I reduced the priority of this bug(if I had an option I would mark this as 
known-issue and leave it)

Original comment by cf27...@gmail.com on 28 Jun 2012 at 9:03

GoogleCodeExporter commented 9 years ago

Original comment by cf27...@gmail.com on 13 Dec 2012 at 2:22