From f47163e11f1da3320c24f0055dd5d32bef74d320 Mon Sep 17 00:00:00 2001 From: Matti Tahvonen Date: Tue, 16 Dec 2008 07:20:34 +0000 Subject: 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 --- WebContent/ITMILL/themes/default/button/button.css | 14 ++++++++++---- WebContent/ITMILL/themes/default/styles.css | 6 ++++++ 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;} -- cgit v1.2.3