Hi there,
I have tried now for several days and also searched the vaadin forum, but haven’t found a solution for the following problem:
I use the dashboard example as template and tried the following:
public class SearchSymptomsView extends VerticalLayout implements View {
public SearchSymptomsView() {
Responsive.makeResponsive(this);
CssLayout panels = getCenterContent();
panels.addStyleName("mystyle");
addComponent(panels);
setWidth("100%");
}
...
}
panels
is a CssLayout which contains several hundred
com.vaadin.ui.Panel
instances.
My goal is to have this CssLayout to contain a scrollbar. This works if I add
.v-csslayout{overflow: auto;}
The problem is now that EVERY CssLayout I use will have this overflow-behaviour, which is something I have to avoid.
I thought I can define the overflow-behaviour only for a specific element (
mystyle
) by replacing the above with
.v-csslayout-mystyle {overflow: auto;}
However, this does not work and I have no idea how to solve this.
Any hint to the error in my reasoning would be fantastic.
Thanks a lot,
Sebastian