]> source.dussan.org Git - vaadin-framework.git/commitdiff
fixes #2472, error indicators now works more consistently with checkbox
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Fri, 30 Jan 2009 09:53:14 +0000 (09:53 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Fri, 30 Jan 2009 09:53:14 +0000 (09:53 +0000)
svn changeset:6681/svn branch:trunk

WebContent/ITMILL/themes/default/button/button.css
WebContent/ITMILL/themes/default/styles.css
src/com/itmill/toolkit/terminal/gwt/client/ui/ICheckBox.java

index b1e20b0c0d99d576b562819650acb4b2f5b461f8..7db961b0fabbd11e31074b6c671f5a47e3b79a27 100644 (file)
 }
 .i-button-link span {
        text-decoration: underline;
-}
+}\r
+\r
+.i-checkbox {\r
+       white-space: nowrap;    \r
+}\r
+       \r
+.i-checkbox .i-errorindicator {\r
+       float: none;\r
+       display:inline;\r
+       padding-left: 10px;\r
+       background-position:left;\r
+}\r
+
 
 /* fixes streched buttons in IE6 */
 * html .i-button {
 \r
 /* Error indicator on checkbox fix for IE6 */
 * html .i-checkbox * { display: block; float: left;}
-* html .i-checkbox .i-errorindicator {padding-right:4px;}
+* html .i-checkbox .i-errorindicator {background-position:right;display: block; float: left; padding-left: 0px; padding-right:4px;}
 
 /* Error indicator on checkbox fix for IE7 */
 *+ html .i-checkbox * { display: block; float: left;}
-*+ html .i-checkbox .i-errorindicator {padding-right:7px;}
+*+ html .i-checkbox .i-errorindicator {background-position:right;display: block; float: left; padding-left: 0px;;padding-right:7px;}
 
 /* Error indicator on button fix for IE7 */
 *+ html button .i-errorindicator { display:inline; padding-right:5px; }
index a963d0f94e16307448d49871451024caf5a8a969..d1b43d4fe99facbaf8259f4df4a42e988b1316de 100644 (file)
        text-decoration: underline;
 }
 
+.i-checkbox {
+       white-space: nowrap;    
+}
+       
+.i-checkbox .i-errorindicator {
+       float: none;
+       display:inline;
+       padding-left: 10px;
+       background-position:left;
+}
+
+
 /* fixes streched buttons in IE6 */
 * html .i-button {
        width: 1px;
 
 /* Error indicator on checkbox fix for IE6 */
 * html .i-checkbox * { display: block; float: left;}
-* html .i-checkbox .i-errorindicator {padding-right:4px;}
+* html .i-checkbox .i-errorindicator {background-position:right;display: block; float: left; padding-left: 0px; padding-right:4px;}
 
 /* Error indicator on checkbox fix for IE7 */
 *+ html .i-checkbox * { display: block; float: left;}
-*+ html .i-checkbox .i-errorindicator {padding-right:7px;}
+*+ html .i-checkbox .i-errorindicator {background-position:right;display: block; float: left; padding-left: 0px;;padding-right:7px;}
 
 /* Error indicator on button fix for IE7 */
 *+ html button .i-errorindicator { display:inline; padding-right:5px; }
index f5fb4842e1b099cb1168f8e53cf5e819e6057024..104399d5d375ca697de8ddd284544b8c36dc0ab0 100644 (file)
@@ -66,9 +66,12 @@ public class ICheckBox extends com.google.gwt.user.client.ui.CheckBox implements
         if (uidl.hasAttribute("error")) {
             if (errorIndicatorElement == null) {
                 errorIndicatorElement = DOM.createDiv();
+                errorIndicatorElement.setInnerHTML("&nbsp;");
                 DOM.setElementProperty(errorIndicatorElement, "className",
                         "i-errorindicator");
                 DOM.appendChild(getElement(), errorIndicatorElement);
+                DOM.sinkEvents(errorIndicatorElement, ITooltip.TOOLTIP_EVENTS
+                        | Event.ONCLICK);
             }
         } else if (errorIndicatorElement != null) {
             DOM.setStyleAttribute(errorIndicatorElement, "display", "none");