HorizontalLayout/Form sizing issue

I have a HorizontalLayout:

		
HorizontalLayout mainLayout = new HorizontalLayout();
mainLayout.setSpacing(true);
mainLayout.addComponent(sidebar);
mainLayout.addComponent(editUserForm);

editUserForm consists of 2 TextField’s, 2 TwinColSelects and a footer (HorizontalLayout) containing 3 buttons (Save, Undo, Delete)
When the layout is painted, it cuts off the form. The edge is just a hair past the Delete button. Basically, it’s as if Vaadin does not “see” the form fields or their widths. I’m sure I can work around this, but not sure if this is a bug or not.

The code snippet you provided is a little too short to give any clue where the problem might be. Could you describe what layouts the editUserForm and the sidebar are, and how they are constructed (their children, widths, margins, styles etc.).

Judging by the name, mainLayout, I suppose this layout is added as the root layout for the main window (
mainWindow.setContent(mainLayout)
)?