Page 1 of 1

Scrollbar to panel

PostPosted: Mon Mar 25, 2019 7:45 pm
by reversedr
Hi!,

How do i add a scrollbar to a panel in web version.

Thank You

Re: Scrollbar to panel

PostPosted: Wed Mar 27, 2019 12:29 pm
by reversedr
without adding a table to the group?

Re: Scrollbar to panel

PostPosted: Wed Mar 27, 2019 5:48 pm
by Support@SIB
Did you use an UIScrollPanel?

Re: Scrollbar to panel

PostPosted: Mon Apr 01, 2019 11:49 am
by reversedr
Hi

I replaced all my UIPanel() to UIScrollPanel() but still cannot see a scrollbar .

Do i need to change other things ?

Thank you

Re: Scrollbar to panel

PostPosted: Mon Apr 01, 2019 12:53 pm
by Support@SIB
It depends on your layout, because if you add the scroll panel to a panel with border layout, then the space can't grow and no scrollbar will appear.

Be sure to use a Formlayout and don't attach the scrollpanel to the bottom anchor. This makes it possible to grow...

Re: Scrollbar to panel

PostPosted: Mon Apr 01, 2019 4:29 pm
by reversedr
Hi

Manage to make a scrollbar appear but only when running as Desktop application... in Browser it does not show...
Any workaround?

Thank You

Re: Scrollbar to panel

PostPosted: Tue Apr 02, 2019 5:58 pm
by rjahn
Please post a simple example.

Re: Scrollbar to panel

PostPosted: Tue Apr 02, 2019 6:28 pm
by reversedr
In visionX

1. create a new Application
2. add some editors to the panel
3. In Eclipse change all UIPanel to UIScrollPanel
4. Test as Desktop application , and resize the window (reduce size) , the scrollbar appears.
5. Test as as HTML5 application in Browser, and resize the window (reduce size) , no scrollbars appears...

Re: Scrollbar to panel

PostPosted: Wed Apr 03, 2019 1:57 pm
by Development@SIB
The Scroll implementation in vaadin UI (web) is different. In current VisionX release, it won't work this way. It will work if you add the scroll panel itself with preferred size, which means: add it to the NORTH of a BorderLayout or add it to e.g. 0, 0, -1, 0 of a FormLaoyut. Both will add the scroll area without bottom limit.

In the next VisionX release, this will work without workarounds out-of-the-box.

But this was one reason why the scroll panel isn't available in VisionX.

If you, as developer, use the scroll panel, you should add it right.

There's also another workaround for VisionX which solves the problem once, without coding in every screen. But please ask to your VisionX Consultant for details.

Re: Scrollbar to panel

PostPosted: Fri Apr 05, 2019 11:47 am
by reversedr
Hello

Did as you said but still cannot see the scrollbars in Web browser...

Can you post an example ?

Thank You

Re: Scrollbar to panel

PostPosted: Fri Apr 05, 2019 1:11 pm
by Support@SIB
Do you work with Desktop, Enterprise or Trial Version of VisionX?

Re: Scrollbar to panel

PostPosted: Fri Apr 05, 2019 3:47 pm
by reversedr
ItsĀ“s
Enterprise 5.1.8

Re: Scrollbar to panel

PostPosted: Fri Apr 05, 2019 9:36 pm
by Support@SIB
Please try the latest version 5.2.23. It's available in your download area.