How to use RootLayoutPanel with DnD?

35 views
Skip to first unread message

Meredith O.

unread,
Jul 7, 2015, 9:49:13 PM7/7/15
to gwt...@googlegroups.com
How do I go about using DnD with a root layout panel? The existing constructor will only take an absolute or root panel as an argument. The documentation doesn't mention how to do this.
Any help is appreciated, thank you! For reference, I'm using GWT 2.7 and DnD 3.3.4.

Fred Sauer

unread,
Jul 8, 2015, 12:34:45 AM7/8/15
to gwt...@googlegroups.com
Does https://github.com/fredsa/gwt-dnd/issues/98 help at all, i.e. set BODY (and perhaps HTML) height to 100% ?

/* CSS */
BODY, HTML {
 height: 100%;
}


On Tue, Jul 7, 2015 at 6:49 PM, Meredith O. <mere...@umich.edu> wrote:
How do I go about using DnD with a root layout panel? The existing constructor will only take an absolute or root panel as an argument. The documentation doesn't mention how to do this.
Any help is appreciated, thank you! For reference, I'm using GWT 2.7 and DnD 3.3.4.

--
You received this message because you are subscribed to the Google Groups "gwt-dnd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gwt-dnd+u...@googlegroups.com.
To post to this group, send email to gwt...@googlegroups.com.
Visit this group at http://groups.google.com/group/gwt-dnd.
For more options, visit https://groups.google.com/d/optout.



--

Meredith O.

unread,
Jul 9, 2015, 1:29:16 AM7/9/15
to gwt...@googlegroups.com, fr...@allen-sauer.com
Hello Fred,

Thank you so much for getting back to me and for your help! Sorry I didn't specify this earlier, but I meant I have an issue with creating a PickupDragController with a RootLayoutPanel as an argument - the compiler won't allow it. I was wondering if there was any workaround to this, or if the PickupDragController must use a RootPanel or AbsolutePanel.

Meredith

Fred Sauer

unread,
Jul 10, 2015, 4:47:06 PM7/10/15
to Meredith O., gwt...@googlegroups.com
Meredith,

An AbsolutePanel / RootPanel is indeed currently required.

--

V.B.

unread,
Jul 11, 2015, 11:56:09 AM7/11/15
to gwt...@googlegroups.com, mere...@umich.edu, fr...@allen-sauer.com
Hi Fred,
     Question... If I wanted to use a RootLayoutPanel (and Layouts in general) with DnD, is there an approach(es) that you might recommend, even if its a non-trivial undertaking? I might be interested in implementing it for a project. If I do, I'd be fine sharing the resulting workaround with you in case any parts of it might inspire a feature in DnD.

Fred Sauer

unread,
Jul 13, 2015, 3:49:34 PM7/13/15
to V.B., gwt...@googlegroups.com, Meredith Ostermann
You might try seeing if you can overload the PickupDragController constructor and make it work.

On Sat, Jul 11, 2015 at 8:56 AM, V.B. <vidalb...@gmail.com> wrote:
Hi Fred,
     Question... If I wanted to use a RootLayoutPanel (and Layouts in general) with DnD, is there an approach(es) that you might recommend, even if its a non-trivial undertaking? I might be interested in implementing it for a project. If I do, I'd be fine sharing the resulting workaround with you in case any parts of it might inspire a feature in DnD.




--
Reply all
Reply to author
Forward
0 new messages