On Tue, Apr 17, 2012 at 01:14, stagirus <[email protected]> wrote:
> My apologies for my English being not that helpful.
>
> As my original post stated: SplitLayoutPanel.setSize("100%", "100%") does
> not function as one would expect. In our case, the instance of (new
> SplitLayoutPanel) is added into another panel (VerticalPanel) that in turn
> fills (spreads) out within its parent panels/widgets. Our layouts are very
> complex.
>
> Unfortunately, SplitLayoutPanel only shows up when I invoke
> SplitLayoutPanel.setPixelSize(600,600). This is the problem.
>
> I hope this makes sense for you all. May I should report this as a defect?

Ah, it makes a lot more sense now.

The problem here is that you are adding a LayoutPanel, or more
generally, something that implements RequiresResize to a container
that doesn't implement ProvidesResize.

So in your specific case, you SplitLayoutPanel doesn't acquire its
size anywhere, until you've specifically given it with setPixelSize().

Off the top of my head, I can think of a few simple solutions:
a) if it's only north and south, try just using VerticalSplitPanel?
b) Switch the entire layout of you application to standards mode and
use layout panels throughout
c) Since your vertical panel cannot be resized anyway, implement a
custom ProvidesResizeWrapperPanel which sets it's own size to (100%,
100%) and, this is doable because your own panel doesn't have to use
pixel as it's unit. This custom panel then wraps the VeticalSplitPanel
inside the "position: relative" element and ensures that it calls the
VerticalSplitPanel's onResize method after it's been attached to the
DOM. Voila. :)

I hope this helps solving your problem.

-- Joe

-- 
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