From: Artur Signell Date: Tue, 15 Dec 2009 09:11:26 +0000 (+0000) Subject: Fixed GWT 1.7.0 incompatible code X-Git-Tag: 6.7.0.beta1~2149 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d4c526b2ef29faa1f05b686e31f717dc5d8a8148;p=vaadin-framework.git Fixed GWT 1.7.0 incompatible code svn changeset:10304/svn branch:6.2 --- diff --git a/src/com/vaadin/terminal/gwt/client/ui/VMenuBar.java b/src/com/vaadin/terminal/gwt/client/ui/VMenuBar.java index e5b0c4e32b..d985aa0626 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VMenuBar.java +++ b/src/com/vaadin/terminal/gwt/client/ui/VMenuBar.java @@ -519,8 +519,9 @@ public class VMenuBar extends Widget implements Paintable, popup.getElement().getStyle().setProperty("zoom", ""); DeferredCommand.addCommand(new Command() { public void execute() { - if (popup.getElement().getStyle().getWidth() == null - || popup.getElement().getStyle().getWidth() == "") { + if (popup.getElement().getStyle().getProperty("width") == null + || popup.getElement().getStyle().getProperty( + "width") == "") { popup.setWidth(popup.getOffsetWidth() + "px"); } popup.getElement().getStyle().setProperty("zoom", "1");