Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
VerticalLayout issue with zero height top v-slot
Hello everyone!
I am having a little issue with the VerticalLayout (Vaadin 7.7.0) regarding zero height top slots. Please consider the following example:
protected void init(VaadinRequest vaadinRequest) {
VerticalLayout main = new VerticalLayout();
main.setSpacing(false);
main.setMargin(false);
main.setSizeFull();
VerticalLayout mhl = new VerticalLayout();
mhl.setSpacing(false);
mhl.setMargin(false);
mhl.setSizeFull();
main.addComponent(new Label());
main.addComponent(mhl);
main.setExpandRatio(mhl, 1);
setContent(main);
}
I expected that the first slot (with label) has zero height but as seen using Firebug in Firefox or similar debuggers there is some space reserved at the top of the page for this slot. I want to use a top slider from the https://vaadin.com/directory#!addon/sliderpanel addon (instead of the label) and this messes up the layout.
If I switch the main.addComponent(new Label()); and main.addComponent(mhl); lines to create a zero height slot at the bottom of the page or Horizontal layouts for left and right zero width slots everything works as expected.
This is reproducible at least with Firefox and IExplorer.
Am I missing something here or can this be fixed via css?
Thank you and best regards
Thomas
Hi Thomas,
I am interested to work on this requirement, and would glad to assist you.
please add me on Skype: cisin.daniel or e mail me at daniel.cis70@gmail.com
Regards.
Daniel Smith