Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I make a VerticalLayout scrollable using vaadin?

I have a Components which exists as a common layout for all my pages. The layout of this component is as follows (made using paint so please sorry :p):

layout

Right arrows mean that this layout is a HorizontalLayout and down arrows VerticalLayout.

I'm really interested in making bodyContent layout SCROLLABLE. Within this layout I usually introduce lots of UI components (more layouts, text fields, forms, grids...) and sometimes components aren't shown due to the lack of vertical space and the absence of vertical scroll. So is there any way to make bodyContent scrollable (using SCSS/CSS or any other way)?

Thanks in advance.

EDIT: I've solved this thanks to @JaneVi:

.v-ui > .v-widget {
   overflow: visible;
}
like image 870
russellhoff Avatar asked Jun 24 '15 14:06

russellhoff


1 Answers

Try using Panel within which you can put your bodyContent(vertical layout) using setContent() and can have scroll bars when height of your layout exceeds the panel's height.

like image 176
SSH Avatar answered Sep 22 '22 05:09

SSH