]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixed GWT 1.7.0 incompatible code
authorArtur Signell <artur.signell@itmill.com>
Tue, 15 Dec 2009 09:11:26 +0000 (09:11 +0000)
committerArtur Signell <artur.signell@itmill.com>
Tue, 15 Dec 2009 09:11:26 +0000 (09:11 +0000)
svn changeset:10304/svn branch:6.2

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

index e5b0c4e32b1d8201ad4eee0be374a6f5f8e1eee5..d985aa062657091778d7768b338923c9bde173e9 100644 (file)
@@ -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");