Wednesday, March 18, 2015

AF:GridCell not stretching to its width

When using the contents are wrapped even after giving the width.


To stretch the component to its full width of the cell use the following snapshot of code:

<af:panelGridLayout id="vinaypgl01" width="400px">
<af:gridRow id="vinaygr01">
<af:gridCell id="vinaygc01" halign="stretch" width="50%">
<af:outputText id="vinayot01"> This line will not be wrapped, it will be in full width of the panel grid layout i.e. 400 pixels.</af:outputText>
</af:gridCell>
</af:gridRow>
</af:panelGridLayout >

No comments: