gregor,
is there a way to force the splitpane not draggable? i didnt really
see it in the api and if there is a way to do that it would be great
too!
thanks!
On Oct 20, 3:19 pm, gregor <[EMAIL PROTECTED]> wrote:
> Hi Shaselai,
>
> I was half worried you would say "AbsolutePanel". If you use one, all
> bets are off as to how it works in resizing situations - it's
> basically up to you - I'm not competent to advise you how to best
> proceed.
>
> As I understand it, AbsolutePanel works fixed pixel by pixel over the
> browsers current window area, so if you move the panel itself (e.g.
> by moving the HSP splitter for example) anything you previously put
> into it will think it was where it was before you moved it, so to
> speak.
>
> I think working with D&D and AP's, you can't expect HSP to work
> properly, but I may be wrong. There may be a way to move the whole
> shooting match, but most cool examples of AP stuff I've seen have
> always been in a fixed position.
>
> No help I'm afraid
> gregor
>
> On Oct 20, 7:47 pm, shaselai <[EMAIL PROTECTED]> wrote:
>
> > 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
-~----------~----~----~----~------~----~------~--~---