aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatti Tahvonen <matti.tahvonen@itmill.com>2008-12-16 07:20:34 +0000
committerMatti Tahvonen <matti.tahvonen@itmill.com>2008-12-16 07:20:34 +0000
commitf47163e11f1da3320c24f0055dd5d32bef74d320 (patch)
tree8710040f404ad9a1d285e5684fb00e054b784f45
parent672504d869ebc23133dc65ad34dadc12cd05441e (diff)
downloadvaadin-framework-f47163e11f1da3320c24f0055dd5d32bef74d320.tar.gz
vaadin-framework-f47163e11f1da3320c24f0055dd5d32bef74d320.zip
improving button rendering time in table (disabled expression hack inside .i-table as there is most often lot of buttons)
svn changeset:6220/svn branch:trunk
-rw-r--r--WebContent/ITMILL/themes/default/button/button.css14
-rw-r--r--WebContent/ITMILL/themes/default/styles.css6
2 files changed, 16 insertions, 4 deletions
diff --git a/WebContent/ITMILL/themes/default/button/button.css b/WebContent/ITMILL/themes/default/button/button.css
index 8823e84037..753fc9c339 100644
--- a/WebContent/ITMILL/themes/default/button/button.css
+++ b/WebContent/ITMILL/themes/default/button/button.css
@@ -28,15 +28,21 @@
overflow: visible;
padding-left: 10px;
padding-right: 10px;
-}
+}
+
/* fixes streched buttons in IE7 */
-*+html .i-button {
+*+html .i-button {
overflow: visible;
padding-left: 10px;
padding-right: 10px;
width: expression(this.offsetWidth + "px");
-}
-
+}
+
+/* can't use expression hack in IE7 if lot's of button due
+ * performance issues (as often in table). See #2329 */
+*+html .i-table .i-button {
+ width: auto;
+}
/* Error indicator on checkbox fix for IE6 */
* html .i-checkbox * { display: block; float: left;}
diff --git a/WebContent/ITMILL/themes/default/styles.css b/WebContent/ITMILL/themes/default/styles.css
index e1ebd82572..f7b7962905 100644
--- a/WebContent/ITMILL/themes/default/styles.css
+++ b/WebContent/ITMILL/themes/default/styles.css
@@ -79,6 +79,7 @@
padding-left: 10px;
padding-right: 10px;
}
+
/* fixes streched buttons in IE7 */
*+html .i-button {
overflow: visible;
@@ -87,6 +88,11 @@
width: expression(this.offsetWidth + "px");
}
+/* can't use expression hack in IE7 if lot's of button due
+ * performance issues (as often in table). See #2329 */
+*+html .i-table .i-button {
+ width: auto;
+}
/* Error indicator on checkbox fix for IE6 */
* html .i-checkbox * { display: block; float: left;}