]> source.dussan.org Git - vaadin-framework.git/commitdiff
fixes #2536
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Wed, 4 Feb 2009 14:58:57 +0000 (14:58 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Wed, 4 Feb 2009 14:58:57 +0000 (14:58 +0000)
svn changeset:6730/svn branch:trunk

src/com/itmill/toolkit/terminal/gwt/client/ui/IPanel.java

index d082b00f086c5c57e3fd0517e6656b3136a8d85f..03cef562e0e7d7e668ad95f1820cd6fd80b066a4 100644 (file)
@@ -70,6 +70,8 @@ public class IPanel extends SimplePanel implements Container {
 
     private int contentMarginLeft = -1;
 
+    private String previousStyleName;
+
     public IPanel() {
         super();
         DivElement captionWrap = Document.get().createDivElement();
@@ -200,6 +202,15 @@ public class IPanel extends SimplePanel implements Container {
 
     }
 
+    @Override
+    public void setStyleName(String style) {
+        if (!style.equals(previousStyleName)) {
+            super.setStyleName(style);
+            detectContainerBorders();
+            previousStyleName = style;
+        }
+    }
+
     private void handleError(UIDL uidl) {
         if (uidl.hasAttribute("error")) {
             if (errorIndicatorElement == null) {