Added layout container, based on code from RootLayoutPanel.