Map not showing in animated disclosure panel (IE8)

17 views
Skip to first unread message

Viktor Bresan

unread,
Nov 15, 2009, 1:03:43 PM11/15/09
to Google API Libraries for GWT
Hi all.

I have a DisclosurePanel that contains FlexTable. Left table column
contains MapWidget and right column contains some Labels and
TextBoxes.

When DisclosurePanel's animation is enabled, on open / close map is
shown only for a split second and than it immediately disappears.

When DisclosurePanel's animation is disabled, map is shown correctly.

I am using GWT 1.7.1, gwt-maps 1.0.4 and IE8.


Viktor.

Eric Ayers

unread,
Nov 15, 2009, 10:22:21 PM11/15/09
to gwt-goo...@googlegroups.com
One thing you might try is the map.checkResize() function.  It fixes a number of layout ills.


--
You are subscribed to the Google Groups "GWT-Google-Apis" group.
For more options, visit http://groups.google.com/group/gwt-google-apis?hl=en



--
Eric Z. Ayers
Google Web Toolkit, Atlanta, GA USA

Viktor Bresan

unread,
Nov 16, 2009, 8:46:21 AM11/16/09
to Google API Libraries for GWT
I have called both checkResize and checkResizeAndCenter from
DisclosurePanel OpenHandler's onOpen method. Map is centered but it
still disappears immediately.




On Nov 16, 4:22 am, Eric Ayers <zun...@google.com> wrote:
> One thing you might try is the map.checkResize() function.  It fixes a
> number of layout ills.
>

Eric Ayers

unread,
Nov 16, 2009, 10:39:05 AM11/16/09
to gwt-goo...@googlegroups.com
I'm sorry, I don't have a good answer for you.  Have you tried it in any other browser?  If so, what are the results (does it seem to be isolated ot ie8?)  Would you mind creating an issue on the GWT issue tracker with a small reproduction case?

Eric Ayers

unread,
Nov 20, 2009, 7:48:05 AM11/20/09
to gwt-goo...@googlegroups.com
Here is a code snippet from someone on the GWT contributors mailing list having a similar problem that came across today.  They were using DockPanel instead of DisclosurePanel, but I thought I'd pass it along.

               root.animate(0, new AnimationCallback()
               {
                       public void onLayout(Layer layer, double progress)
                       {
                       }

                       public void onAnimationComplete()
                       {
                               map.checkResizeAndCenter();
                       }
               });


On Mon, Nov 16, 2009 at 8:46 AM, Viktor Bresan <viktor...@gmail.com> wrote:

Viktor Bresan

unread,
Dec 6, 2009, 8:48:33 AM12/6/09
to Google API Libraries for GWT
I have spent some more time playing with this. The problem that I have
described earlier happens only when widget is added to DisclosurePanel
with DisclosurePanel.add() method. If DisclosurePanel.setContent() is
used, map is shown as it should be. I couldn't figure out this earlier
since add() behaved otherwise normally.

Kind regards, Viktor.



On Nov 20, 1:48 pm, Eric Ayers <zun...@google.com> wrote:
> Here is a code snippet from someone on the GWT contributors mailing list
> having a similar problem that came across today.  They were using DockPanel
> instead of DisclosurePanel, but I thought I'd pass it along.
>
>                root.animate(0, new AnimationCallback()
>                {
>                        public void onLayout(Layer layer, double progress)
>                        {
>                        }
>
>                        public void onAnimationComplete()
>                        {
>                                map.checkResizeAndCenter();
>                        }
>                });
>
Reply all
Reply to author
Forward
0 new messages