diff options
author | Jouni Koivuviita <jouni.koivuviita@itmill.com> | 2009-07-02 08:10:01 +0000 |
---|---|---|
committer | Jouni Koivuviita <jouni.koivuviita@itmill.com> | 2009-07-02 08:10:01 +0000 |
commit | be62fb31fea022602a260bf5ae90ccb40c75def5 (patch) | |
tree | 9ce705d92d9208ce1e1a66da51ccf2ba367dcc83 | |
parent | 16ae76ec0ca6994f24ea7f85b19dc39432453123 (diff) | |
download | vaadin-framework-be62fb31fea022602a260bf5ae90ccb40c75def5.tar.gz vaadin-framework-be62fb31fea022602a260bf5ae90ccb40c75def5.zip |
Fixes #3080: Hidden Tabsheet tab causes a gap (reindeer)
svn changeset:8279/svn branch:6.0
-rw-r--r-- | src/com/vaadin/terminal/gwt/client/ui/VTabsheet.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ui/VTabsheet.java b/src/com/vaadin/terminal/gwt/client/ui/VTabsheet.java index 599145f996..f38bfd8386 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VTabsheet.java +++ b/src/com/vaadin/terminal/gwt/client/ui/VTabsheet.java @@ -209,11 +209,12 @@ public class VTabsheet extends VTabsheetBase { } public void setVisible(int index, boolean visible) { - Element e = DOM.getParent(getTab(index).getElement()); + com.google.gwt.dom.client.Element e = getTab(index).getElement() + .getParentElement().getParentElement(); if (visible) { - DOM.setStyleAttribute(e, "display", ""); + e.getStyle().setProperty("display", ""); } else { - DOM.setStyleAttribute(e, "display", "none"); + e.getStyle().setProperty("display", "none"); } } |