Hi gregor,
On my right side is an Absolutepanel. The API says it doesnt resize
automatically and I am using that panel for drag and drop which
requires an Absolutepanel so I don't think i can change that panel.
Now I tried putting the absolutepanel inside a verticalpanel instead.
What happens now is the absolutepanel need to be resized to 100%,100%
so it can fit inside the vertical panel. However, when i start drag
objects inside the absolutepanel/verticalpanel the verticalpanel's
scrollbar keeps extending in the X direction when there's more than
enough space. So if i drag a widget over it may have a huge width and
same height... kind of annoying especially it happens everytime i
drag. Do you know why this is happening? Also, is there a way to
listen to the HSP so when the user moves it i can dynamically change
the size of the absolutepanel so objects dont get squished? Or perhaps
there is a way to make the HSP non-draggable so i dont need to worry
about?
thanks!
AbsolutePanel dragPane;
VerticalPanel dragContainer;
dragPane.setSize("100%","100%")
dragContainer.setSize("100%","100%")
dragContainer.add(dragPanel);
On Oct 20, 2:03 pm, gregor <[EMAIL PROTECTED]> wrote:
> Hi Shaselai,
>
> HSP can be complex in this respect - more details required for
> pinpoint assistance.
>
> However in general:
>
> - Use a container panel (maybe Composite?) for your RHS and set it's
> size to (100%,100%)
> - Place your RHS widgets in this container and size them in relation
> to it %-wise.
> - then leave the HSP to deal with overall sizing itself - don't get
> involved with managing this yourself
>
> This works pretty much OK for horizontal sizing, but maybe won't for
> vertical sizing. HSP has an inbuilt ScrollPanel that will stretch the
> display downward (i.e. document-style) if required. Repost details if
> you have a problem with this.
>
> regards
> gregor
>
> On Oct 20, 5:36 pm, shaselai <[EMAIL PROTECTED]> wrote:
>
> > I am using a horizontal splitpanel. I divided into 2 halves and the
> > right half has widgets in it. The problem arrives when I move the
> > split panel around by dragging the "dot" left and right. The widgets
> > on the right side appears to be "out of the panel" when i drag the bar
> > too much to the right. How do i listen to the drag so that when it
> > does happen i can increase the panel size on the right so widgets dont
> > "disappear"? thanks!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---