this.client = client;
this.id = uidl.getId();
- if(uidl.hasAttribute("caption"))
- caption.setText(uidl.getStringAttribute("caption"));
- else
- caption.setText("");
+ clear();
if(uidl.hasAttribute("style"))
setStyleName(CLASSNAME + " " + CLASSNAME+"-"+uidl.getStringAttribute("style"));
else
setStyleName(CLASSNAME);
- clear();
- add(caption);
+ // Handle caption displaying
+ if(uidl.hasAttribute("caption") && !uidl.getStringAttribute("caption").equals("")) {
+ caption.setText(uidl.getStringAttribute("caption"));
+ add(caption);
+ } else if(uidl.hasAttribute("style")) {
+ // Theme needs this to work around different paddings
+ addStyleName(CLASSNAME+"-nocaption");
+ }
UIDL layoutUidl = uidl.getChildUIDL(0);
Widget layout = client.getWidget(layoutUidl);
background: #fafafc url(../img/window-bg.png) repeat-x;\r
font-family: helvetica, verdana, tahoma, arial, sans-serif;\r
color: #222;\r
- font-size: 62.5%;\r
+ font-size: 68.75%;\r
line-height: 1.4em;\r
}\r
\r
input, select, textarea, button {\r
font-family: helvetica, verdana, tahoma, arial, sans-serif;\r
- font-size: 1.1em;\r
+ font-size: 1em;\r
}\r
\r
select {\r
overflow: hidden;\r
background: transparent url(../img/top-right.png) no-repeat right top;\r
content: url(../img/top-left.png);\r
- margin: -6px -6px 0 -6px;\r
+ margin: -6px -6px 3px -6px;\r
}\r
\r
.i-panel:after {\r
}\r
\r
.i-panel-caption {\r
- font-size: 1.2em;\r
+ font-size: 1.1em;\r
font-weight: bold;\r
color: #1c3e6e;\r
- margin: 3px 0 5px 0;\r
+ margin: 0 0 7px 0;\r
}\r
\r
\r
\r
.i-panel-strong .i-panel-caption {\r
color: #fff;\r
- margin: -22px 0 12px 0;\r
+ margin: -25px 0 12px 0;\r
white-space: nowrap;\r
}\r
\r
+/* Strong style without caption */\r
+.i-panel-strong.i-panel-nocaption {\r
+ background-image: url(../img/top-bg.png);\r
+}\r
+.i-panel-strong.i-panel-nocaption:before {\r
+ height: 7px;\r
+ background-image: url(../img/top-right.png);\r
+ content: url(../img/top-left.png);\r
+}\r
\r
\r
/* Light style */\r
background-image: url(../img/top-bg-light.png);\r
border-color: #b3c2d6;\r
border-top-color: #2667a2;\r
- margin-top: 23px;\r
+ margin-top: 20px;\r
}\r
\r
.i-panel-light:before {\r
}\r
\r
.i-panel-light .i-panel-caption {\r
- margin: -23px -5px 18px -5px;\r
- font-size: 1.1em;\r
+ margin: -26px -5px 18px -5px;\r
+ font-size: 1em;\r
white-space: nowrap;\r
}\r
\r
+/* Light style without caption */\r
+.i-panel-light.i-panel-nocaption {\r
+ margin-top: 5px;\r
+}\r
+\r
\r
\r
\r
background-position: 0 1px;\r
}\r
\r
+* html .i-panel .i-panel-caption,\r
+*+html .i-panel .i-panel-caption {\r
+ margin-top: 3px;\r
+}\r
+\r
* html .i-panel-strong .i-panel-caption,\r
*+html .i-panel-strong .i-panel-caption {\r
margin: 1px 0 10px 0;\r
\r
* html .i-panel-light .i-panel-caption,\r
*+html .i-panel-light .i-panel-caption {\r
+ margin-top: -23px;\r
margin-bottom: 0;\r
padding-bottom: 23px; /* Must specify enough space because of wierd clipping bug */\r
}
\ No newline at end of file