\r
if (isDynamicWidth()) {\r
childComponentContainer.renderChild(childUIDL, client, 0);\r
+ } else if (Util.isCached(childUIDL)) {\r
+ /*\r
+ * We must update the size of the relative sized component if\r
+ * the expand ratio or something else in the layout changes\r
+ * which affects the size of a relative sized component\r
+ */\r
+ client.handleComponentRelativeSize(childComponentContainer\r
+ .getWidget());\r
} else {\r
childComponentContainer.renderChild(childUIDL, client,\r
activeLayoutSize.getWidth());\r
import com.itmill.toolkit.tests.components.TestBase;\r
import com.itmill.toolkit.ui.Button;\r
import com.itmill.toolkit.ui.Label;\r
+import com.itmill.toolkit.ui.TextField;\r
import com.itmill.toolkit.ui.VerticalLayout;\r
import com.itmill.toolkit.ui.Window;\r
import com.itmill.toolkit.ui.Button.ClickEvent;\r
\r
// The bottom layout\r
vl2 = new VerticalLayout();\r
- Label label2 = new Label("The bottom layout");\r
- vl2.addComponent(label2);\r
+ TextField tf = new TextField("The bottom field");\r
+ tf.setHeight("100%");\r
+ vl2.addComponent(tf);\r
\r
// Add everything to the view\r
mainLayout.addComponent(vl1);\r