PDA

View Full Version : text tag displays only 25 rows


mtsuruta
10-27-2004, 03:36 AM
Please see that laszlo application display untill number 25 and not untill 30 as expected.
How can i fix it ?

<canvas bgcolor="#ffffff" height="400" width="400">

<window width="200" height="200" x="20" y="20" title="teste1" resizable="true" closeable="true" clip="true">

<view>
<text multiline="true" x="6" height="600" width="150">
<pre>

1
2
3
4
5
6
7
8
9
10
1
2
3
4
5
6
7
7
8
9
20
1
2
3
4
5
6
7
8
9
30


</pre></text>

</view>

<scrollbar axis="y"/>
<scrollbar axis="x"/>

</window>

</canvas>

jsundman
10-27-2004, 05:03 AM
The lines are there (use the scroll bar to see them), but they're not showing up because the window is too short.

Set the canvas height to, for example "800" and window height to "600" and you'll see all the lines without scrolling.

mtsuruta
10-27-2004, 06:26 AM
It works fine but what if we want to maintain canvas and windows smaller for esthetics purpose and wants text high enough to allow scrolling :
<text multiline="true" x="6" height="2000" width="150">
also doesnt work