Author |
Message |
02/11/2022 10:55:35
|
kklasen
Power User
Joined: 19/11/2020 08:33:30
Messages: 66
Offline
|
Hello there,
I make a handy app, so you can turn it horizontal or vertical. Vertical is all fine, the hole text is displayed.
But if you turn it horizontal, if the text is quite big, the content will be cut. So, I put a scrollbar before it, if it is to big for the pane, there should be now a scrollbar. but nothing happens.
Only if I change the textpant to label in this case horizontal scroll bar displayed (see Screenshots). How I can fix it for textpane or labelmultiline?
Kind regards
klas
|
Filename |
handyAppHorizonExamCut 2022-11-02 092620.png |
Download
|
Description |
Horizontal view, text is cut and no scroll bar. |
Filesize |
17 Kbytes
|
Downloaded: |
114 time(s) |
|
Filename |
handyAppHorizonExamScroll 2022-11-02 092620.png |
Download
|
Description |
Test label with scroll bar |
Filesize |
9 Kbytes
|
Downloaded: |
124 time(s) |
|
Filename |
handyAppVertiExamfull 2022-11-02 092620.png |
Download
|
Description |
Hvertical view full text, for comparison only. |
Filesize |
13 Kbytes
|
Downloaded: |
104 time(s) |
|
|
|
02/11/2022 11:16:44
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5528
Online
|
Hi Klas,
how did you define your TEXTPANE-sizing?
It should be:
Code:
SCROLLPANE width="..." height="..."
ROW
TEXTPANE text="..." width="100%"
...so do NOT define a height to TEXTPANE, so that component grows to its proper size.
Could you please check?
Kind regards! Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
02/11/2022 11:43:53
|
kklasen
Power User
Joined: 19/11/2020 08:33:30
Messages: 66
Offline
|
Hello Björn,
Thanks for your answer.
I have set the textpane to 100% / 100% and scrollpane 100% / 100%;250
[code]
<t:scrollpane id="g_242" height="100%" horizontalscrollmode="auto" verticalscrollmode="auto" width="100%;250" >
<t:row id="g_2" >
<t:textpane id="g_252" height="100%" text="#{d.TrainExamPage2UI.lblTrainQContent}" width="100%" />
.
.
. </t:scrollpane>
the scollbar need a size, because of rowflexlinecontainer shifting.
Kind regards
klas
|
|
|
02/11/2022 11:46:24
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5528
Online
|
Hi,
remove the height from TEXTPANE!
Code:
from:
<t:textpane id="g_252" height="100%" text="#{d.TrainExamPage2UI.lblTrainQContent}" width="100%" />
to:
<t:textpane id="g_252" text="#{d.TrainExamPage2UI.lblTrainQContent}" width="100%" />
Regards, Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
02/11/2022 11:56:00
|
kklasen
Power User
Joined: 19/11/2020 08:33:30
Messages: 66
Offline
|
Hello Björn,
Thank you, you are the best
it works now!
Kind regards
klas
|
|
|
|