Here is the associated issue, and I 100% agree that we need a ResizeListener
on SplitPanel, and that it isn't too hard to add one.
http://code.google.com/p/google-web-toolkit/issues/detail?id=1855

Thanks,
John LaBanca
[EMAIL PROTECTED]


On Thu, Sep 18, 2008 at 1:32 PM, Eric Ayers <[EMAIL PROTECTED]> wrote:

> Look at the FAQ for making a widget fill a browser window.
>
> http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=FAQ_UIVerticalFillApp
>
> Unfortunately, I believe that SplitPanel is missing the requisite callback
> for a resize event to make the same trick work inside a
> HorizontalSplitPanel.
>
> On Thu, Sep 18, 2008 at 1:10 PM, neversaydie <[EMAIL PROTECTED]> wrote:
>
>>
>> if i set it 100% 100% then the map gets too small. it is not getting
>> resized to its outer panel.
>> so i dont know what to do to resize it .. when the page refresh is
>> cliked.
>>
>> On Sep 18, 5:15 pm, "Eric Ayers" <[EMAIL PROTECTED]> wrote:
>> > I don't understand.  You set your map widget to a fixed 200 x 200 pixel
>> > size. What do you expect checkResize() to do?
>> > Maybe you need to set the size using relative values ("100%","100%")?
>> >
>> >
>> >
>> > On Thu, Sep 18, 2008 at 5:46 AM, neversaydie <[EMAIL PROTECTED]> wrote:
>> >
>> > > Hello,
>> >
>> > >  I have one question regarding  google maps display using MapWidget
>> > > class.
>> > >  When mapwidget instance in populated with simple Layout like one in
>> > > the faqs, everything seems to working fine.
>> >
>> > >  But when the same instance is set on a following layout say
>> >
>> > > VerticalSplitPanel mainPanel  = new VerticalSplitPanel();
>> >
>> > > HorizontalSplitPanel horizontalSplitPanel = new
>> > > HorizontalSplitPanel();
>> > > horizontalSplitPanel .setLeftWidget(//some other panel);
>> >
>> > > horizontalSplitPanel .setSplitPosition("50%");
>> > > horizontalSplitPanel .setRightWidget(getNewMapWigetInstance())
>> >
>> > > mainPanel.setTopWidget(horizontalSplitPanel );
>> > > mainPanel.setBottomWidget(//some other horizontal panel);
>> > > mainPanel
>> >
>> > > private Mapwidget getNewMapWidget()
>> > > {
>> > > VerticalPanel verticalPanel = new VerticalPanel();
>> >
>> > > AbsolutePanel absolutePanel = new AbsolutePanel();
>> >
>> > > MapWidget mapWiddget = new MapWidget("200px", "200px");
>> >
>> > > absolutePanel .add(mapWiddget);
>> >
>> > > mapWiddget .checkResize();
>> >
>> > > verticalPanel .add(absolutePanel );
>> >
>> > > return verticalPanel ;
>> >
>> > > }
>> >
>> > > The problem is the mapwiget remains with size 200px 200px, it will
>> > > never fill up the entire panel which it is supposed.
>> > > The panel layout depicted above is  something that is required for
>> > > type of look and feel i have.
>> >
>> > > Can anybody helpme why the mapwidget is not able to resize to the
>> > > width and height of its outer panel?
>> >
>> > > Thank you
>> >
>> > --
>> > Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://
>> code.google.com/webtoolkit/
>> >>
>>
>
>
> --
> Eric Z. Ayers - GWT Team - Atlanta, GA USA
> http://code.google.com/webtoolkit/
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to