Hello,
I have a view containing a <text>-Component and the scrollbars <hscrollbar/>
and <vscrollbar/>.
Unfortunately, I cannot reach the complete text with both scrollbars, when
the content is much bigger than the view itself.
Do I do something wrong in my code or is this a bug in OpenLaszlo?
In my example the rows starting down from 'G11...' cannot be reached.
Horizontically the numbers after the first '...99999' cannot be reached by
the scrollbar.
Kind Regards,
Marc
---------------------------------------------
Example code:
<canvas>
<class name="MyClass"
extends="window" resizable="true"
minheight="200" minwidth="350" width="300" height="300"
visible="false">
<simplelayout axis="y" spacing="5"/>
<tabs name="reportTabs" y="2" x="0"
_contentWidth="${parent.width-20}"
_contentHeight="${parent.height - 120}">
<!-- First Column -->
<tabpane name="myTabpane" bgcolor="#ffffff" text="First Tab"
width="${parent.width}" height="${parent.height-30}">
<view name="myInnerView" x="5" y="5"
width="${parent.width-15}" height="${parent.height-12}">
<text name="myText" width="${parent.width}"
height="${parent.height}" multiline="true"/>
<hscrollbar/>
<vscrollbar/>
</view>
</tabpane>
</tabs>
<method name="setText" args="text"><![CDATA[
Debug.write("text="+this.reportTabs.myTabpane.myInnerView.myText.text);
this.reportTabs.myTabpane.myInnerView.myText.setAttribute("text",text);
]]>
</method>
<method name="changeVisibility"><![CDATA[
if (this.visible==true)
this.setVisible(false);
else
this.setVisible(true);
]]>
</method>
</class>
<view>
<MyClass name="myInstance" x="100" y="100"/>
<button>Click me
<handler name="onclick"><![CDATA[
parent.myInstance.changeVisibility();
parent.myInstance.setText("<p>A111112222233333444445555566666777778888899999
111112222233333444445555566666777778888899999</p>"+
"<p>B11111222223333344444555556666677777888889999911111222223333344444555556
6666777778888899999</p>"+
"<p>C11111222223333344444555556666677777888889999911111222223333344444555556
6666777778888899999</p>"+
"<p>D11111222223333344444555556666677777888889999911111222223333344444555556
6666777778888899999</p>"+
"<p>E11111222223333344444555556666677777888889999911111222223333344444555556
6666777778888899999</p>"+
"<p>F11111222223333344444555556666677777888889999911111222223333344444555556
6666777778888899999</p>"+
"<p>G11111222223333344444555556666677777888889999911111222223333344444555556
6666777778888899999</p>"+
"<p>H11111222223333344444555556666677777888889999911111222223333344444555556
6666777778888899999</p>"+
"<p>I11111222223333344444555556666677777888889999911111222223333344444555556
6666777778888899999</p>"+
"<p>J11111222223333344444555556666677777888889999911111222223333344444555556
6666777778888899999</p>"+
"<p>K11111222223333344444555556666677777888889999911111222223333344444555556
6666777778888899999</p>"+
"<p>L11111222223333344444555556666677777888889999911111222223333344444555556
6666777778888899999</p>"+
"<p>M11111222223333344444555556666677777888889999911111222223333344444555556
6666777778888899999</p>"+
"<p>N11111222223333344444555556666677777888889999911111222223333344444555556
6666777778888899999</p>"+
"<p>O11111222223333344444555556666677777888889999911111222223333344444555556
6666777778888899999</p>"+
"<p>P11111222223333344444555556666677777888889999911111222223333344444555556
6666777778888899999</p>"+
"<p>Q11111222223333344444555556666677777888889999911111222223333344444555556
6666777778888899999</p>");
]]>
</handler>
</button>
</view>
</canvas>