\r
private Element createContainerElement() {\r
Element el = DOM.createDiv();\r
+ if (fullheight) {\r
+ DOM.setStyleAttribute(el, "height", "100%");\r
+ }\r
hide(el);\r
return el;\r
}\r
\r
public void setHeight(String height) {\r
super.setHeight(height);\r
- if ("100%".equals(height) && !fullheight) {\r
- int childCount = DOM.getChildCount(getElement());\r
- for (int i = 0; i < childCount; i++) {\r
- DOM.setStyleAttribute(DOM.getChild(getElement(), i), "height",\r
- "100%");\r
+ if ("100%".equals(height)) {\r
+ if (!fullheight) {\r
+ int childCount = DOM.getChildCount(getElement());\r
+ for (int i = 0; i < childCount; i++) {\r
+ DOM.setStyleAttribute(DOM.getChild(getElement(), i),\r
+ "height", "100%");\r
+ }\r
+ fullheight = true;\r
}\r
- fullheight = true;\r
} else if (fullheight) {\r
int childCount = DOM.getChildCount(getElement());\r
for (int i = 0; i < childCount; i++) {\r