Re: ScrollPanel inside layer of LayoutPanel

2011-12-07 Thread Aidan O'Kelly
On Wed, Dec 7, 2011 at 4:41 PM, Matt S  wrote:

> ScrollPanel when you have a ResizeCompositeWidget inside?
>

Also, just to add, if you want the whole page to grow vertically, your
content widget should not be ResizeComposites, as they require an explicit
size, whereas a regular Composite Widget with say a HTMLPanel as its root,
will grow vertically naturally.

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



Re: ScrollPanel inside layer of LayoutPanel

2011-12-07 Thread Aidan O'Kelly
On Wed, Dec 7, 2011 at 4:41 PM, Matt S  wrote:

> You stated you could see why it won't work, but did you figure out a
> suitable
> solution? I have a similar deal - how can we allow a whole-screen scroll
> with
> ScrollPanel when you have a ResizeCompositeWidget inside?
>
> In my case, I have a TabLayoutPanel as part of my page, and depending upon
> user
> interaction, what is displayed on the tab can greatly vary. But I don't
> just want
> the TabLayoutPanel to scroll, I want the whole page to do so,
> header/footer/everything.


 Well, making a LayoutPanel grow depending on content height, is possible,
but pretty ugly! (measuring and resizing, ugh) so you'll probably want to
abandon the TabLayoutPanel, and roll your own, using just a SimplePanel to
hold the content, and a set of Buttons that change 'tab' by called
setWidget() on the SimplePanel.

Actually... TabLayoutPanel uses a DeckLayoutPanel to hold its content, and
there is also DeckPanel and TabPanel, these might do what you need out of
the box, I haven't tried them.

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



Re: ScrollPanel inside layer of LayoutPanel

2011-12-07 Thread Matt S
Aidan O'Kelly  writes:
> 
> .. I see why this can't work now.. The child
> Widget of ScrollPanel needs an explicit size. Which kinda begs the
> question, why does ScrollPanel implement ProvidesResize?!
> 

You stated you could see why it won't work, but did you figure out a suitable
solution? I have a similar deal - how can we allow a whole-screen scroll with
ScrollPanel when you have a ResizeCompositeWidget inside? 

In my case, I have a TabLayoutPanel as part of my page, and depending upon user
interaction, what is displayed on the tab can greatly vary. But I don't just 
want
the TabLayoutPanel to scroll, I want the whole page to do so,
header/footer/everything.



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



Re: ScrollPanel inside layer of LayoutPanel

2011-11-24 Thread agi
Hi,

the ScrollPanel will take exactly 100% width and 100% height of the
. So in that case (since we have only one layer) also will
fill all LayoutPanel. So I will rather ask where is the LayoutPanel?
Is it by chance in a table? anyway you can try to set width:100% and
height:100% to LayoutPanel.. maybe that will help:)

cheers,
a

On Nov 24, 4:04 am, "Aidan O'Kelly"  wrote:
> Doh, need more coffee.. I see why this can't work now.. The child
> Widget of ScrollPanel needs an explicit size. Which kinda begs the
> question, why does ScrollPanel implement ProvidesResize?!
>
>
>
>
>
>
>
> On Thu, Nov 24, 2011 at 2:17 AM, Aidan O'Kelly  wrote:
> > A simplified version of a UiBinder view..:
>
> > 
> >  
> >    
> >        
> >    
> >  
> > 
>
> > Should this work? Once I add the ScrollPanel, the
> > ResizeCompositeWidget doesn't show anymore. Adding height/width="100%"
> > to the ScrollPanel has no effect. There is a unbroken chain of
> > ProvidesResize/RequiresResize, so I would expect this to work.
>
> > Is this a bug, or as designed? And does anyone have a good solution for 
> > this?

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



Re: ScrollPanel inside layer of LayoutPanel

2011-11-23 Thread Aidan O'Kelly
Doh, need more coffee.. I see why this can't work now.. The child
Widget of ScrollPanel needs an explicit size. Which kinda begs the
question, why does ScrollPanel implement ProvidesResize?!

On Thu, Nov 24, 2011 at 2:17 AM, Aidan O'Kelly  wrote:
> A simplified version of a UiBinder view..:
>
> 
>  
>    
>        
>    
>  
> 
>
>
> Should this work? Once I add the ScrollPanel, the
> ResizeCompositeWidget doesn't show anymore. Adding height/width="100%"
> to the ScrollPanel has no effect. There is a unbroken chain of
> ProvidesResize/RequiresResize, so I would expect this to work.
>
> Is this a bug, or as designed? And does anyone have a good solution for this?
>

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



ScrollPanel inside layer of LayoutPanel

2011-11-23 Thread Aidan O'Kelly
A simplified version of a UiBinder view..:


  



  



Should this work? Once I add the ScrollPanel, the
ResizeCompositeWidget doesn't show anymore. Adding height/width="100%"
to the ScrollPanel has no effect. There is a unbroken chain of
ProvidesResize/RequiresResize, so I would expect this to work.

Is this a bug, or as designed? And does anyone have a good solution for this?

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