Dashboard project & scrollBar

Hello,
How can I add a scroll bar for the dashboard vaadin project?
Thank you.



Can any one help ?

You need to set the layout height in the DashboardView to undefined/auto in order for it to grow. So remove this line:
https://github.com/vaadin/dashboard-demo/blob/master/src/main/java/com/vaadin/demo/dashboard/DashboardView.java#L48

Also, you will need to convert the content layout into a Panel, or add overflow: auto; to the “.view-content” element with CSS, since otherwise you won’t get scrollbars:
https://github.com/vaadin/dashboard-demo/blob/master/src/main/java/com/vaadin/demo/dashboard/DashboardUI.java#L308

One more option: wrap the contents of the DashboardView inside a Panel, so that you get scrollbars.

Thank you !!!
problem is solved :slight_smile: