]> source.dussan.org Git - vaadin-framework.git/commitdiff
gwt 1.4 methods
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Fri, 14 Sep 2007 12:54:22 +0000 (12:54 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Fri, 14 Sep 2007 12:54:22 +0000 (12:54 +0000)
svn changeset:2297/svn branch:trunk

src/com/itmill/toolkit/terminal/gwt/client/ui/IContextMenu.java

index 52b40a993dbe2236ff9388a40ca746546d4b4ace..636e9116c951dac0c2abf4041bfc8a455f2cae67 100644 (file)
@@ -50,8 +50,8 @@ public class IContextMenu extends PopupPanel {
                setPopupPosition(left, top);
                show();
                // fix position if "outside" screen
-               if(DOM.getIntAttribute(getElement(),"offsetWidth") + left > Window.getClientWidth()) {
-                       left = Window.getClientWidth() - DOM.getIntAttribute(getElement(),"offsetWidth");
+               if(DOM.getElementPropertyInt(getElement(),"offsetWidth") + left > Window.getClientWidth()) {
+                       left = Window.getClientWidth() - DOM.getElementPropertyInt(getElement(),"offsetWidth");
                        setPopupPosition(left, top);
                }
        }