]> source.dussan.org Git - vaadin-framework.git/commitdiff
formlayout now reservers space for error indicator even though nothing is visible
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Mon, 10 Nov 2008 13:56:11 +0000 (13:56 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Mon, 10 Nov 2008 13:56:11 +0000 (13:56 +0000)
svn changeset:5848/svn branch:trunk

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

index b795e5c8ea60f1e5895cc9fbc10e2ec8f0f908d7..da6f8642104741a664c700c4dc4b08eb1e3d4dac 100644 (file)
@@ -6,6 +6,16 @@
 }
 .i-formlayout-captioncell {
        text-align:right;
+       white-space: nowrap;
+}
+
+.i-formlayout-contentcell {
+       width:100%;
+}
+
+.i-formlayout-error-indicator {
+       /* fix width so layout is not jumpy when error disapear */
+       width: 12px;
 }
 
 .i-formlayout-spacing .i-formlayout-row .i-formlayout-captioncell, 
index 0ea9b658506c2ac7cea5d61d052237832d0de451..45a1f862317b8b225e37ea515437055f5467e006 100644 (file)
@@ -655,6 +655,15 @@ input.i-modified,
 }
 .i-formlayout-captioncell {
        text-align:right;
+       white-space: nowrap;
+}
+
+.i-formlayout-contentcell {
+       width:100%;
+}
+
+.i-formlayout-error-indicator {
+       width: 12px;
 }
 
 .i-formlayout-spacing .i-formlayout-row .i-formlayout-captioncell, 
index f856f4a23cae99bd8c6e53fc5e902ecb535c1a45..6a7f32f777210e3a30718e12dcc4b87a6e441065 100644 (file)
@@ -270,7 +270,8 @@ public class IFormLayout extends FlexTable implements Container {
     }
 
     private class ErrorFlag extends HTML {
-        private static final String CLASSNAME = ".i-form-layout-error-indicator";
+        private static final String CLASSNAME = IFormLayout.CLASSNAME
+                + "-error-indicator";
         Element errorIndicatorElement;
         private Paintable owner;