But could you tell me what is wrong in my example. I think I followed the instructions from the the chapter about layout margins in the Book of Vaadin.
I normally defined the margin rules only for the layout with style “vlayout-style” but it looks the margin rules are applied for all the vertival layout of my web application…
After several test, I found the cause. If you define margins for a layout, all the child layouts will have the margins. I think it comes from the css rules.
So I used setMargin() method to remove the margins for the child layouts.
Yes, the current margin implementation is “dump” in the way that it will cascade to inner layouts as well. You can prevent this by using the CSS child selector “>”, but that won’t work in IE6.