Skip to main content

Coordinate Layout & Text Area problem

1 reply [Last post]
lwuit_hero
Offline
Joined: 2010-09-26
Points: 0

I have two component
1- label
2- text area
when I used Coordinate Layout
text area appear as white Things with out Text !!!
when I used other layout work Fine
My code:


<div>     Form MainM=new Form()</div>
<div> </div>
<div>     </div>
<div>     MainM.setLayout(new CoordinateLayout(Display.getInstance().getDisplayWidth(),Display.getInstance().getDisplayHeight()));</div>
<div>     </div>
<div>       Label head=new Label(title);</div>
<div> </div>
<div>       head.setAlignment(4);</div>
<div> </div>
<div>       head.setY(70);</div>
<div> </div>
<div>      MainM.addComponent(head);</div>
<div> </div>
<div>    TextArea contentM=new TextArea(content);</div>
<div> </div>
<div>      contentM.setGrowByContent(true);</div>
<div> </div>
<div> </div>
<div>      contentM.setEditable(false);</div>
<div> </div>
<div>      contentM.setSmoothScrolling(true);</div>
<div> </div>
<div> </div>
<div>      <a id="fck_paste_padding">contentM</a>.setY(90);</div>
<div> </div>
<div>     MainM.addComponent(contentM);</div>
<div> </div>
<div> </div>
<div>    MainM.show();</div>
<p> </p>

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
vprise
Offline
Joined: 2003-11-07
Points: 0

Coordinate layout can't reflow correctly.
Set grow by content on the text area to false and make sure to set rows/columns correctly.