Re: DockLayoutPanel inside a ScrollPanel

2010-06-17 Thread Olivier Monaco
Yes, Stefan, I missed it. Thanks.

On 16 juin, 18:33, Stefan Bachert  wrote:
> > The layout panels are made to avoid scrolling. They must have a fixed
> > size.
>
> The latter sentence is not completly true.
> A LayoutPanel does not calculate its size from children.
> Especially it does not grow when the children grow.
>
> A Layoutpanel needs to be told which size it has.
> The possibilities are:
>
> a) to set height and width explicitly (what you notice)
> b) to grow and shrink with its parent (what you missed)
>
> Stefan Bacherthttp://gwtworld.de

-- 
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-tool...@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: DockLayoutPanel inside a ScrollPanel

2010-06-16 Thread Stefan Bachert
> The layout panels are made to avoid scrolling. They must have a fixed
> size.

The latter sentence is not completly true.
A LayoutPanel does not calculate its size from children.
Especially it does not grow when the children grow.

A Layoutpanel needs to be told which size it has.
The possibilities are:

a) to set height and width explicitly (what you notice)
b) to grow and shrink with its parent (what you missed)

Stefan Bachert
http://gwtworld.de

-- 
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-tool...@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: DockLayoutPanel inside a ScrollPanel

2010-06-16 Thread Olivier Monaco
Elben,

The layout panels are made to avoid scrolling. They must have a fixed
size. They use the whole window and updates there content viewport as
the window is resized. If their content is too large to be shown, a
part of it will be hidden (http://code.google.com/intl/fr/webtoolkit/
doc/latest/DevGuideUiPanels.html).

So, as Gal said, fix the size of you DockLayoutPanel. If it's not an
option for you, you may forgot layouts. What do you try to do?

Olivier

On 15 juin, 01:42, Elben Shira  wrote:
> Hi,
>
> I have a layout defined by:
> - ...
>   - ScrollPanel
>     - DockLayoutPanel
>       - north
>       - west
>       - center
>       - east
>
> The problem is that the dock layout panel is cut off from the window;
> the scroll bars don't appear. I can force the scroll bars to appear by
> setting the height of both panels to some pixel, but this is obviously
> not a useful solution.
>
> Any hints?

-- 
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-tool...@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: DockLayoutPanel inside a ScrollPanel

2010-06-15 Thread Sky
If i'm not mistaken you may be running into essentially the same kind
of dilemma I've had to deal with. My site doesn't use a DocLayoutPanel
cuz I made this part of my site long before layout panels existed in
GWT, but I think some of my divs are the same thing as layout panels.
I use css styling; position:absolute along with specific top, right,
bottom, left coords to make a panel that takes up all the the
remaining width and height left in the page. The internal divs are
absolute and set with width and height at 100% and that seems to be
enough to create scroll bars if the contents are larger than the
container. I do actually have the second inner div with overflow set
to auto, but I'm playing with the CSS right now and having that (the
overflow css) NOT set doesn't change the scrollbar or anything. I
guess I don't need it...

So... is my assumption that LayoutPanels have position:absolute and
the four directions set to 0px (or whatever value) correct? If so,
maybe that panel can gain scrollbars by making inner panels have
position:absolute and height:100% as well?

I'm not entirely sure, though I'm sure I could figure it out if I
played with the css on your site. Or you can just use a DOM inspector
on my site at http://subtabs.skystrider.com and see how I accomplish
it.

hope that helps a little bit :)

On Jun 15, 3:25 pm, Gal Dolber  wrote:
> You need to set the docklayoutpanel's height and width.
>
> 2010/6/14 Elben Shira 
>
>
>
> > Hi,
>
> > I have a layout defined by:
> > - ...
> >  - ScrollPanel
> >    - DockLayoutPanel
> >      - north
> >      - west
> >      - center
> >      - east
>
> > The problem is that the dock layout panel is cut off from the window;
> > the scroll bars don't appear. I can force the scroll bars to appear by
> > setting the height of both panels to some pixel, but this is obviously
> > not a useful solution.
>
> > Any hints?
>
> > --
> > 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-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

-- 
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-tool...@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: DockLayoutPanel inside a ScrollPanel

2010-06-15 Thread Gal Dolber
You need to set the docklayoutpanel's height and width.

2010/6/14 Elben Shira 

> Hi,
>
> I have a layout defined by:
> - ...
>  - ScrollPanel
>- DockLayoutPanel
>  - north
>  - west
>  - center
>  - east
>
> The problem is that the dock layout panel is cut off from the window;
> the scroll bars don't appear. I can force the scroll bars to appear by
> setting the height of both panels to some pixel, but this is obviously
> not a useful solution.
>
> Any hints?
>
> --
> 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-tool...@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.
>
>

-- 
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-tool...@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.



DockLayoutPanel inside a ScrollPanel

2010-06-15 Thread Elben Shira
Hi,

I have a layout defined by:
- ...
  - ScrollPanel
- DockLayoutPanel
  - north
  - west
  - center
  - east

The problem is that the dock layout panel is cut off from the window;
the scroll bars don't appear. I can force the scroll bars to appear by
setting the height of both panels to some pixel, but this is obviously
not a useful solution.

Any hints?

-- 
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-tool...@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.