]> source.dussan.org Git - vaadin-framework.git/commitdiff
FIX: IWindow style dependent names were assigned to the wrong DOM element.
authorJouni Koivuviita <jouni.koivuviita@itmill.com>
Fri, 14 Mar 2008 13:22:54 +0000 (13:22 +0000)
committerJouni Koivuviita <jouni.koivuviita@itmill.com>
Fri, 14 Mar 2008 13:22:54 +0000 (13:22 +0000)
svn changeset:4051/svn branch:trunk

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

index ca296a073ad1a9ab432b569bdf8976b284b40640..c8dd06824f8e890bbb522515c972ce5a68391155 100644 (file)
@@ -555,4 +555,11 @@ public class IWindow extends PopupPanel implements Paintable, ScrollListener {
         client.updateVariable(id, "scrollleft", scrollLeft, false);
     }
 
+    public void addStyleDependentName(String styleSuffix) {
+        // IWindow's getStyleElement() does not return the same element as
+        // getElement(), so we need to override this.
+        setStyleName(getElement(), getStylePrimaryName() + "-" + styleSuffix,
+                true);
+    }
+
 }