How can I make a VerticalLayout scrollable using vaadin?

强颜欢笑 提交于 2019-11-30 04:22:08

问题


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):

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;
}

回答1:


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.



来源:https://stackoverflow.com/questions/31028870/how-can-i-make-a-verticallayout-scrollable-using-vaadin

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!