In expanded mode the panel would be shown with the standard panel caption bar.
In collapsed mode (content not visible) the panel would be presented with only the caption bar - all of its contents would be not visible and the screen space occupied by the panel’s content would be available for other elements on the page.
Since upgrading to
Vaadin 7.6.0 this behavior does not seem to work. The same logic is applied but the content is still visible.
When we reverted to
Vaadin 7.5.10 , the expected behavior returned.
Sounds like a regression to me. I though couldn’t reproduce it easily. I tried following code:
@Override
protected void init(VaadinRequest vaadinRequest) {
final VerticalLayout layout = new VerticalLayout();
Panel panel = new Panel("Paneeli");
panel.setContent(new VerticalLayout(new Label("Content")));
Button button = new Button("Toggle");
button.addClickListener( e -> {
panel.getContent().setVisible(!panel.getContent().isVisible());
});
layout.addComponents(panel, button);
layout.setMargin(true);
layout.setSpacing(true);
setContent(layout);
}
Could you extract a small test case how to reproduce the issue and fill in a ticket to dev.vaadin.com? The team is busy doing the first maintenance release for 7.6 series, it would be great to get this fixed in it.
Not sure if it is related but there was an old, broken change which was accidentally included in 7.6.0. The change breaks layouts in certain cases, so you should try 7.6-SNAPSHOT or 7.6.1 once it’s out, might just be that the issue is fixed there
By recompiling widgetset, as you suggested on a related thread, this problem went away. Recall building with 7.6.0 but at runtime the client side reporting 7.5.8.