-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello all,
I need some help with being able to scroll. Right now, in both the textbox and the html element I have, when the text gets long enough to either horizontally or vertically, I cant scroll so I loose the text. Any help you can provide would be great!
Here is the index.zul file:
<window width="100%" apply="com.testing.MyComposer"> <borderlayout height="400px"> <center border="0"> <borderlayout> <west size="33%" border="0" splittable="true" collapsible="true"> <panel id="fileEx" height="100%" width="100%" style="margin-bottom:10px" title="Explorer" border="normal" > <panelchildren> <borderlayout> <west id="west" size="50%" title="" > <tree id="explorerTree" zclass="z-dottree" > <treecols> <treecol label="Name"/> <treecol label="Files"/> </treecols> </tree> </west> <center > <listbox id="explorerBox" > <listhead> <listheader label="Name"/> <listheader label="Size"/> <listheader label="Modify Date"/> <listheader label=""/> </listhead> </listbox> </center> </borderlayout> </panelchildren> </panel> </west> <center border="0" > <panel height="100%" width="100%" style="margin-bottom:10px" title="Editor" border="normal" > <panelchildren> <textbox id="plainInput" width="100%" rows="40" forward="onChange=onPlainInput"/> </panelchildren> </panel> </center> <east size="33%" border="0" splittable="true" collapsible="true"> <panel height="100%" width="100%" style="margin-bottom:10px" title="Output" border="normal"> <panelchildren> <html id="mOutput" > </html> </panelchildren> </panel> </east> </borderlayout> </center> </borderlayout> </window>
Here is the string that I place inside the html element:
"<div style='white-space: pre-wrap; overflow:auto; position:relative;'>" + "MY LONG CONTENT HERE" + "</div>"
Scroll help!
Asked: 2010-06-29 12:43:12 +0800
Seen: 1,497 times
Last updated: Jul 02 '10