This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information

Scrollbar to panel

Frequently asked questions about VisionX.

Scrollbar to panel

Postby reversedr » Mon Mar 25, 2019 7:45 pm

Hi!,

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

Thank You
reversedr
 
Posts: 21
Joined: Tue Oct 23, 2018 11:03 am

Re: Scrollbar to panel

Postby reversedr » Wed Mar 27, 2019 12:29 pm

without adding a table to the group?
reversedr
 
Posts: 21
Joined: Tue Oct 23, 2018 11:03 am

Re: Scrollbar to panel

Postby Support@SIB » Wed Mar 27, 2019 5:48 pm

Did you use an UIScrollPanel?
User avatar
Support@SIB
 
Posts: 293
Joined: Mon Sep 28, 2009 1:56 pm

Re: Scrollbar to panel

Postby reversedr » Mon Apr 01, 2019 11:49 am

Hi

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

Do i need to change other things ?

Thank you
reversedr
 
Posts: 21
Joined: Tue Oct 23, 2018 11:03 am

Re: Scrollbar to panel

Postby Support@SIB » Mon Apr 01, 2019 12:53 pm

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...
User avatar
Support@SIB
 
Posts: 293
Joined: Mon Sep 28, 2009 1:56 pm

Re: Scrollbar to panel

Postby reversedr » Mon Apr 01, 2019 4:29 pm

Hi

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

Thank You
reversedr
 
Posts: 21
Joined: Tue Oct 23, 2018 11:03 am

Re: Scrollbar to panel

Postby rjahn » Tue Apr 02, 2019 5:58 pm

Please post a simple example.
rjahn
 
Posts: 41
Joined: Sun Sep 13, 2009 1:54 pm

Re: Scrollbar to panel

Postby reversedr » Tue Apr 02, 2019 6:28 pm

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...
reversedr
 
Posts: 21
Joined: Tue Oct 23, 2018 11:03 am

Re: Scrollbar to panel

Postby Development@SIB » Wed Apr 03, 2019 1:57 pm

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.
User avatar
Development@SIB
 
Posts: 323
Joined: Mon Sep 28, 2009 1:54 pm

Re: Scrollbar to panel

Postby reversedr » Fri Apr 05, 2019 11:47 am

Hello

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

Can you post an example ?

Thank You
reversedr
 
Posts: 21
Joined: Tue Oct 23, 2018 11:03 am

Re: Scrollbar to panel

Postby Support@SIB » Fri Apr 05, 2019 1:11 pm

Do you work with Desktop, Enterprise or Trial Version of VisionX?
User avatar
Support@SIB
 
Posts: 293
Joined: Mon Sep 28, 2009 1:56 pm

Re: Scrollbar to panel

Postby reversedr » Fri Apr 05, 2019 3:47 pm

Its´s
Enterprise 5.1.8
reversedr
 
Posts: 21
Joined: Tue Oct 23, 2018 11:03 am

Re: Scrollbar to panel

Postby Support@SIB » Fri Apr 05, 2019 9:36 pm

Please try the latest version 5.2.23. It's available in your download area.
User avatar
Support@SIB
 
Posts: 293
Joined: Mon Sep 28, 2009 1:56 pm


Return to VisionX