aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatti Tahvonen <matti.tahvonen@itmill.com>2008-08-11 09:00:02 +0000
committerMatti Tahvonen <matti.tahvonen@itmill.com>2008-08-11 09:00:02 +0000
commit9bd86ad61644a97506169d3f75520daa3820215f (patch)
tree5202db2cb6970b3019843d1a2662dab83bc94bcc /src
parentcb905763623ab6d2593b7f1f99e2ad77a5ad4ae7 (diff)
downloadvaadin-framework-9bd86ad61644a97506169d3f75520daa3820215f.tar.gz
vaadin-framework-9bd86ad61644a97506169d3f75520daa3820215f.zip
itabsheet fix
svn changeset:5163/svn branch:trunk
Diffstat (limited to 'src')
-rw-r--r--src/com/itmill/toolkit/terminal/gwt/client/ui/ITabsheetPanel.java17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ui/ITabsheetPanel.java b/src/com/itmill/toolkit/terminal/gwt/client/ui/ITabsheetPanel.java
index d07d720f9c..7ab19717a3 100644
--- a/src/com/itmill/toolkit/terminal/gwt/client/ui/ITabsheetPanel.java
+++ b/src/com/itmill/toolkit/terminal/gwt/client/ui/ITabsheetPanel.java
@@ -44,6 +44,9 @@ public class ITabsheetPanel extends ComplexPanel {
private Element createContainerElement() {
Element el = DOM.createDiv();
+ if (fullheight) {
+ DOM.setStyleAttribute(el, "height", "100%");
+ }
hide(el);
return el;
}
@@ -108,13 +111,15 @@ public class ITabsheetPanel extends ComplexPanel {
public void setHeight(String height) {
super.setHeight(height);
- if ("100%".equals(height) && !fullheight) {
- int childCount = DOM.getChildCount(getElement());
- for (int i = 0; i < childCount; i++) {
- DOM.setStyleAttribute(DOM.getChild(getElement(), i), "height",
- "100%");
+ if ("100%".equals(height)) {
+ if (!fullheight) {
+ int childCount = DOM.getChildCount(getElement());
+ for (int i = 0; i < childCount; i++) {
+ DOM.setStyleAttribute(DOM.getChild(getElement(), i),
+ "height", "100%");
+ }
+ fullheight = true;
}
- fullheight = true;
} else if (fullheight) {
int childCount = DOM.getChildCount(getElement());
for (int i = 0; i < childCount; i++) {