Reviewers: ,


Please review this at http://gwt-code-reviews.appspot.com/1696803/

Affected files:
  user/src/com/google/gwt/user/client/ui/impl/PopupImplMozilla.java


Index: user/src/com/google/gwt/user/client/ui/impl/PopupImplMozilla.java
===================================================================
--- user/src/com/google/gwt/user/client/ui/impl/PopupImplMozilla.java (revision 10954) +++ user/src/com/google/gwt/user/client/ui/impl/PopupImplMozilla.java (working copy)
@@ -15,12 +15,12 @@
  */
 package com.google.gwt.user.client.ui.impl;

+import com.google.gwt.core.client.Scheduler;
+import com.google.gwt.core.client.Scheduler.ScheduledCommand;
 import com.google.gwt.dom.client.Element;
 import com.google.gwt.dom.client.Style.Display;
 import com.google.gwt.dom.client.Style.Overflow;
-import com.google.gwt.user.client.Command;
 import com.google.gwt.user.client.DOM;
-import com.google.gwt.user.client.DeferredCommand;

 /**
* Implementation class used by {@link com.google.gwt.user.client.ui.PopupPanel}.
@@ -99,7 +99,7 @@
       // 'overflow:auto' after all of the elements on the page have been
       // rendered,
       // the PopupPanel becomes the highest element in the stacking order.
-      DeferredCommand.addCommand(new Command() {
+      Scheduler.get().scheduleDeferred(new ScheduledCommand() {
         public void execute() {
           outerElem.getStyle().setOverflow(Overflow.AUTO);
         }
@@ -125,4 +125,4 @@
     popup.getStyle().setDisplay(Display.NONE);
     popup.getStyle().clearDisplay();
   }
-}
+}
\ No newline at end of file


--
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to