[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Scrollbar does not work textpane/ labelmultiline  XML
Forum Index -> Development
Author Message
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
[Thumb - handyAppHorizonExamCut 2022-11-02 092620.png]
 Filename handyAppHorizonExamCut 2022-11-02 092620.png [Disk] Download
 Description Horizontal view, text is cut and no scroll bar.
 Filesize 17 Kbytes
 Downloaded:  114 time(s)

[Thumb - handyAppHorizonExamScroll 2022-11-02 092620.png]
 Filename handyAppHorizonExamScroll 2022-11-02 092620.png [Disk] Download
 Description Test label with scroll bar
 Filesize 9 Kbytes
 Downloaded:  124 time(s)

[Thumb - handyAppVertiExamfull 2022-11-02 092620.png]
 Filename handyAppVertiExamfull 2022-11-02 092620.png [Disk] Download
 Description Hvertical view full text, for comparison only.
 Filesize 13 Kbytes
 Downloaded:  104 time(s)

CaptainCasa

Power User
[Avatar]

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
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
CaptainCasa

Power User
[Avatar]

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
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
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team