Reviewers: jlabanca,

Description:
Fix verifyPositionStatic() to that RooPanel.get() is explicitly allowed,
e.g.
RootPanel.get().add(widget, x, y);

Review by: [email protected]

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

Affected files:
  M user/src/com/google/gwt/user/client/ui/AbsolutePanel.java


Index: user/src/com/google/gwt/user/client/ui/AbsolutePanel.java
===================================================================
--- user/src/com/google/gwt/user/client/ui/AbsolutePanel.java (revision 8765)
+++ user/src/com/google/gwt/user/client/ui/AbsolutePanel.java   (working copy)
@@ -229,7 +229,8 @@

   private void verifyPositionNotStatic(Widget w) {
     if (!GWT.isProdMode()) {
-      if (w.getElement().getOffsetParent() != getElement()) {
+      if (w.getElement().getOffsetParent() != getElement()
+ && !"HTML".equals(w.getElement().getOffsetParent().getNodeName())) {
         String className = getClass().getName();
GWT.log("Warning: " + className + " descendants will be incorrectly " + "positioned, i.e. not relative to their parent element, when "


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

Reply via email to