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 {
}
.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
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 {
.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,
} else {
setElement(DOM.createTD());
}
+ DOM
+ .setElementAttribute(getElement(), "class",
+ "i-orderedlayout-w1");
}
public void updateCaption(UIDL uidl, Paintable paintable) {
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);
}
.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");
}
}
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");
}
}
}
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) {