Wednesday, September 19, 2012

Disclosure panel open/close events fire before the widget is actually opened or closed

Hi all,

I am using Disclosure panel in my project and on open/close, I do some layout calculations in which I need the height of the panel.

My code is something like this
disclosurePanel.addOpenHandler(new OpenHandler<DisclosurePanel>() {
        @Override
        public void onOpen(OpenEvent<DisclosurePanel> arg0) {
           adjustPageLayout(pageLayout);
        }
      });

The problem is that the open event is fired before the disclosure panel is actually opened, which means that the height of the panel is still as if it is closed (Header-only height). This gives me wrong numbers when I call adjustPageLayout

Any idea how to deal with this?

Best regards,
Rasha 

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/ekunpDji33IJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate