aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--WebContent/ITMILL/themes/default/button/button.css7
-rw-r--r--WebContent/ITMILL/themes/default/styles.css7
-rw-r--r--src/com/itmill/toolkit/terminal/gwt/client/ui/IButton.java5
3 files changed, 5 insertions, 14 deletions
diff --git a/WebContent/ITMILL/themes/default/button/button.css b/WebContent/ITMILL/themes/default/button/button.css
index 0d872cf886..d471d699cb 100644
--- a/WebContent/ITMILL/themes/default/button/button.css
+++ b/WebContent/ITMILL/themes/default/button/button.css
@@ -43,15 +43,8 @@
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;}
* html .i-checkbox .i-errorindicator {padding-right:4px;}
diff --git a/WebContent/ITMILL/themes/default/styles.css b/WebContent/ITMILL/themes/default/styles.css
index 04a47d06cc..d99a2e6b9d 100644
--- a/WebContent/ITMILL/themes/default/styles.css
+++ b/WebContent/ITMILL/themes/default/styles.css
@@ -93,15 +93,8 @@
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;}
* html .i-checkbox .i-errorindicator {padding-right:4px;}
diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ui/IButton.java b/src/com/itmill/toolkit/terminal/gwt/client/ui/IButton.java
index 80d5078e6f..160bcace2f 100644
--- a/src/com/itmill/toolkit/terminal/gwt/client/ui/IButton.java
+++ b/src/com/itmill/toolkit/terminal/gwt/client/ui/IButton.java
@@ -114,6 +114,11 @@ public class IButton extends Button implements Paintable {
icon = null;
}
}
+ if (BrowserInfo.get().isIE7()) {
+ if (width.equals("")) {
+ setWidth(getOffsetWidth() + "px");
+ }
+ }
}
@Override