Hello,
When I set:
final LayoutPanel layoutPanel = new LayoutPanel();
layoutPanel.add(new Label("Drag Widget"));
layoutPanel.setHeight("50px");
layoutPanel.getElement().setDraggable(Element.DRAGGABLE_TRUE);
layoutPanel.addDomHandler(new DragStartHandler() {
@Override
public void onDragStart(DragStartEvent event) {
event.setData("text", "Hello World");
event.getDataTransfer().setDragImage(layoutPanel.getElement(), 10, 10);
}
}, DragStartEvent.getType());
(...)
and then, when I'm really dragging this simple widget it don't has mouse
pointer at it's 10x10px image coordinates, but this widget's image is deep
under mouse pointer and is gradiently opacity... looks bad.
When I use AbsolutePanel in place of LayoutPanel then "dragging help image"
looks all right - with constant opacity and with mouse pointer at 10x10px.
Why?
Please help,
Thanks!
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/MpM9qVDF4g4J.
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.