]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixes #3495: IE renders fixed width buttons incorrectly when using the base theme
authorJouni Koivuviita <jouni.koivuviita@itmill.com>
Thu, 8 Oct 2009 11:07:47 +0000 (11:07 +0000)
committerJouni Koivuviita <jouni.koivuviita@itmill.com>
Thu, 8 Oct 2009 11:07:47 +0000 (11:07 +0000)
svn changeset:9147/svn branch:6.2

src/com/vaadin/terminal/gwt/client/ui/VButton.java

index decf262a17120ca7226977fb0bae978b92adb9dc..d50e7daae06d71ebb9feb57d895fdb1065a722f0 100644 (file)
@@ -407,15 +407,15 @@ public class VButton extends FocusWidget implements Paintable, ClickHandler {
             // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
 
             // Remember the original values
-            var left = style.left, rsLeft = elem.runtimeStyle.left;
+            var left = elem.style.left, rsLeft = elem.runtimeStyle.left;
 
             // Put in the new values to get a computed value out
             elem.runtimeStyle.left = elem.currentStyle.left;
-            style.left = value || 0;
-            var ret = style.pixelLeft;
+            elem.style.left = value || 0;
+            var ret = elem.style.pixelLeft;
 
             // Revert the changed values
-            style.left = left;
+            elem.style.left = left;
             elem.runtimeStyle.left = rsLeft;
             
             return ret;