@Override
protected Widget newDragProxy(DragContext context) {
AbsolutePanel container = new AbsolutePanel();
container.getElement().getStyle().setProperty("overflow", "visible");
WidgetArea draggableArea = new WidgetArea(context.draggable, null);
for (Widget widget : context.selectedWidgets) {
WidgetArea widgetArea = new WidgetArea(widget, null);
Widget proxy = new SimplePanel();
int height = widget.getOffsetHeight();
if (maxProxyHeight > 0 && height > maxProxyHeight) {
height = maxProxyHeight - 5;
}
proxy.setPixelSize(widget.getOffsetWidth(), height);
proxy.addStyleName(DragClientBundle.INSTANCE.css().proxy());
container.add(proxy,
widgetArea.getLeft() - draggableArea.getLeft(),
widgetArea.getTop() - draggableArea.getTop());
}
return container;
}