]> source.dussan.org Git - vaadin-framework.git/commitdiff
Changed error indicator element from DIV to SPAN in Buttons and Panels - IE7 won...
authorJouni Koivuviita <jouni.koivuviita@itmill.com>
Thu, 14 May 2009 09:16:16 +0000 (09:16 +0000)
committerJouni Koivuviita <jouni.koivuviita@itmill.com>
Thu, 14 May 2009 09:16:16 +0000 (09:16 +0000)
svn changeset:7792/svn branch:6.0

src/com/vaadin/terminal/gwt/client/ui/VButton.java
src/com/vaadin/terminal/gwt/client/ui/VPanel.java

index f20a26c0e28f50ecbabff990d1988a61c149edba..943bb117ad9c5d167ffd13cf1ef1b4a883ae5fca 100644 (file)
@@ -85,7 +85,7 @@ public class VButton extends Button implements Paintable {
         // handle error
         if (uidl.hasAttribute("error")) {
             if (errorIndicatorElement == null) {
-                errorIndicatorElement = DOM.createDiv();
+                errorIndicatorElement = DOM.createSpan();
                 DOM.setElementProperty(errorIndicatorElement, "className",
                         "v-errorindicator");
             }
index 44e9fa09ebd6c573cc181ae478b75112b7fbfca7..d1790bf71037ed32c0c68ccd72a2f96ff7430495 100644 (file)
@@ -214,7 +214,7 @@ public class VPanel extends SimplePanel implements Container {
     private void handleError(UIDL uidl) {
         if (uidl.hasAttribute("error")) {
             if (errorIndicatorElement == null) {
-                errorIndicatorElement = DOM.createDiv();
+                errorIndicatorElement = DOM.createSpan();
                 DOM.setElementProperty(errorIndicatorElement, "className",
                         "v-errorindicator");
                 DOM.sinkEvents(errorIndicatorElement, Event.MOUSEEVENTS);