Reviewers: jgw, Ray Ryan,

Description:
Fixes issues 2907, 4277 and 4278.

Issue 2907: use currentStyle instead of style to get the style of the
popup (as suggested in the issue tracker)

Issue 4277: that's a bit "quick and dirty": I set the glass.className to
the same as the PopupPanel::getStyleName except the StylePrimaryName is
appended a "Glass" suffix (i.e. defaults to gwt-PopupPanelGlass). The
idea was that the glass panel would "inherit" the dependent style names
of the PopupPanel (i.e. gwt-PopupPanelGlass-aboveEverything). Another,
simpler, solution that'd work for me would be to just add a
get/setGlassStyleName pair of methods (and/or add/removeGlassStyleName)
or an accessor for the glass Element. I'd be happy to provide another
patch implementing this alternative if you prefer it.

Issue 4278: the "trick" here is to pass the glass panel to
PopupPanelImpl::onShow when isGlassEnabled()==true. On hide however,
PopupPanelImpl::onHide is called on both the PopupPanel and the glass
panel to make sure the iframe shim is removed (even if isGlassEnabled()
has been modified between show() and hide()).

To make things easier, I converted the PopupPanelImpl to use the
dom.client.Element instead of user.client.Element.

Unfortunately, I have neither selenium nor RMI configured, and
PopupPanel tests are disabled in HtmlUnit; so I haven't been able to run
the unit tests against my changes; but I used them in a project (by
overriding the files, just put them earlier in the classpath) and had
the expected result (though obviously not everything changes I made had
been "tested" this way).

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

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


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

Reply via email to