]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixes #1893 Tabsheet broken in IE
authorJoonas Lehtinen <joonas.lehtinen@itmill.com>
Thu, 3 Jul 2008 08:12:07 +0000 (08:12 +0000)
committerJoonas Lehtinen <joonas.lehtinen@itmill.com>
Thu, 3 Jul 2008 08:12:07 +0000 (08:12 +0000)
svn changeset:5011/svn branch:trunk

WebContent/ITMILL/themes/default/caption/caption.css
WebContent/ITMILL/themes/default/orderedlayout/orderedlayout.css
WebContent/ITMILL/themes/default/styles.css
src/com/itmill/toolkit/terminal/gwt/client/ui/IOrderedLayout.java

index 627b79fc708ec666a21f4a1deeedebf94796ef04..36b464b6788046a765f8fb141e0e537802992b88 100644 (file)
@@ -6,36 +6,12 @@
        text-align: left /* Force default alignment */
 }
 
-.i-caption * { 
-       float:left; 
-       display: block;
-}
-.i-orderedlayout-wrap-e {
-       float:left;     
-}
-       
-.i-caption:after, .i-orderedlayout-wrap:after {
-       content: ".";
-       display: block;
-       height: 0;
-    clear: both;
-    visibility: hidden;
-}
-               
-.i-caption, .i-orderedlayout-wrap {
-       display: inline-block;
-}
-
-/* Hides from IE-mac \*/
-* html .i-caption, * html .i-orderedlayout-wrap { height: 1%; }
-.i-caption, .i-orderedlayout-wrap { display: block; }
-/* End hide from IE-mac */
-
 .i-errorindicator {
-       background:transparent url(../icons/16/error.png) no-repeat scroll right top;
-       height:16px;
-       width:10px;
-       margin-left: 3px;
+       width: 10px;
+       height: 16px;
+       padding-right:13px;
+       display: inline;
+       background: transparent url(../icons/16/error.png) no-repeat top right;
 }
 
 * html .i-errorindicator {
index 1a429b2af04405f41a91b8a86b831fa5615cc56f..591f379e5f10e78a4b4aaf0eceb58258f93be88d 100644 (file)
 }
 .i-orderedlayout-hspacing {
        padding-left: 8px;
-}
\ No newline at end of file
+}
+
+.i-orderedlayout-w2 .i-caption * { 
+       float:left; 
+       display: block;
+}
+.i-orderedlayout-w-e {
+       float:left;     
+}
+       
+.i-orderedlayout-w1 {
+       text-align:left;        
+}
+       
+.i-orderedlayout-w2 .i-caption:after, .i-orderedlayout-w2:after {
+       content: ".";
+       display: block;
+       height: 0;
+    clear: both;
+    visibility: hidden;
+}
+               
+.i-orderedlayout-w2 .i-caption, .i-orderedlayout-w2 {
+       display: inline-block;
+}
+
+/* Hides from IE-mac \*/
+* html .i-orderedlayout-w2 .i-caption, * html .i-orderedlayout-w2 { height: 1%; }
+.i-orderedlayout-w2 .i-caption, .i-orderedlayout-w2 { display: block; }
+/* End hide from IE-mac */
+
+/*
+.i-errorindicator {
+       background:transparent url(../icons/16/error.png) no-repeat scroll right top;
+       height:16px;
+       width:10px;
+       margin-left: 3px;
+}
+*/
\ No newline at end of file
index ae3eac6632548be70333279e6f7a69b942400fc5..f19394780a883b28adda8b06458e6040270ccc21 100644 (file)
        text-align: left /* Force default alignment */
 }
 
-.i-caption * { 
-       float:left; 
-       display: block;
-}
-.i-orderedlayout-wrap-e {
-       float:left;     
-}
-       
-.i-caption:after, .i-orderedlayout-wrap:after {
-       content: ".";
-       display: block;
-       height: 0;
-    clear: both;
-    visibility: hidden;
-}
-               
-.i-caption, .i-orderedlayout-wrap {
-       display: inline-block;
-}
-
-/* Hides from IE-mac \*/
-* html .i-caption, * html .i-orderedlayout-wrap { height: 1%; }
-.i-caption, .i-orderedlayout-wrap { display: block; }
-/* End hide from IE-mac */
-
 .i-errorindicator {
-       background:transparent url(icons/16/error.png) no-repeat scroll right top;
-       height:16px;
-       width:10px;
-       margin-left: 3px;
+       width: 10px;
+       height: 16px;
+       padding-right:13px;
+       display: inline;
+       background: transparent url(icons/16/error.png) no-repeat top right;
 }
 
 * html .i-errorindicator {
@@ -724,6 +700,44 @@ input.i-modified,
 .i-orderedlayout-hspacing {
        padding-left: 8px;
 }
+
+.i-orderedlayout-w2 .i-caption * { 
+       float:left; 
+       display: block;
+}
+.i-orderedlayout-w-e {
+       float:left;     
+}
+       
+.i-orderedlayout-w1 {
+       text-align:left;        
+}
+       
+.i-orderedlayout-w2 .i-caption:after, .i-orderedlayout-w2:after {
+       content: ".";
+       display: block;
+       height: 0;
+    clear: both;
+    visibility: hidden;
+}
+               
+.i-orderedlayout-w2 .i-caption, .i-orderedlayout-w2 {
+       display: inline-block;
+}
+
+/* Hides from IE-mac \*/
+* html .i-orderedlayout-w2 .i-caption, * html .i-orderedlayout-w2 { height: 1%; }
+.i-orderedlayout-w2 .i-caption, .i-orderedlayout-w2 { display: block; }
+/* End hide from IE-mac */
+
+/*
+.i-errorindicator {
+       background:transparent url(icons/16/error.png) no-repeat scroll right top;
+       height:16px;
+       width:10px;
+       margin-left: 3px;
+}
+*/
 .i-panel,
 .i-panel-caption,
 .i-panel-content,
index 1dbb3e13fefc809dd28a8274e20babad61db6f64..a9f196b46b8fc1eda37850add0abe1b785011381 100644 (file)
@@ -272,6 +272,9 @@ public abstract class IOrderedLayout extends Panel implements Container {
             } else {
                 setElement(DOM.createTD());
             }
+            DOM
+                    .setElementAttribute(getElement(), "class",
+                            "i-orderedlayout-w1");
         }
 
         public void updateCaption(UIDL uidl, Paintable paintable) {
@@ -290,8 +293,8 @@ public abstract class IOrderedLayout extends Panel implements Container {
                     if (after) {
                         DOM.appendChild(getElement(), captionElement);
                         DOM.setElementAttribute(getElement(), "class",
-                                "i-orderedlayout-wrap");
-                        widget.addStyleName("i-orderedlayout-wrap-e");
+                                "i-orderedlayout-w2");
+                        widget.addStyleName("i-orderedlayout-w-e");
                     } else {
                         DOM.insertChild(getElement(), captionElement, 0);
                     }
@@ -304,12 +307,14 @@ public abstract class IOrderedLayout extends Panel implements Container {
                             .getChildCount(getElement()) - 2);
                     DOM.removeChild(getElement(), firstElement);
                     DOM.appendChild(getElement(), firstElement);
-                    DOM.setElementAttribute(getElement(), "class",
-                            after ? "i-orderedlayout-wrap" : "");
+                    DOM
+                            .setElementAttribute(getElement(), "class",
+                                    after ? "i-orderedlayout-w2"
+                                            : "i-orderedlayout-w1");
                     if (after) {
-                        widget.addStyleName("i-orderedlayout-wrap-e");
+                        widget.addStyleName("i-orderedlayout-w-e");
                     } else {
-                        widget.removeStyleName("i-orderedlayout-wrap-e");
+                        widget.removeStyleName("i-orderedlayout-w-e");
                     }
                 }
 
@@ -317,8 +322,9 @@ public abstract class IOrderedLayout extends Panel implements Container {
                 if (caption != null) {
                     DOM.removeChild(getElement(), caption.getElement());
                     caption = null;
-                    DOM.setElementAttribute(getElement(), "class", "");
-                    widget.removeStyleName("i-orderedlayout-wrap-e");
+                    DOM.setElementAttribute(getElement(), "class",
+                            "i-orderedlayout-w1");
+                    widget.removeStyleName("i-orderedlayout-w-e");
                 }
             }
         }
@@ -379,6 +385,9 @@ public abstract class IOrderedLayout extends Panel implements Container {
                     DOM.setStyleAttribute(table, "width", "100%");
                     DOM.setElementAttribute(itable, "cellpadding", "0");
                     DOM.setElementAttribute(itable, "cellspacing", "0");
+                    // TODO DOM.setStyleAttribute(itd, "align", "left");
+                    // TODO DEBUG DOM.setStyleAttribute(itd, "border", "1px
+                    // solid red");
 
                     // move possible content to cell
                     while (DOM.getChildCount(getElement()) > 0) {