, VkStateHelper.getInstance().getSnapHelper().getSnappedHeight(top,invokingWidget.getOffsetHeight() - (int)VkDesignerUtil.getDecorationsHeight(invokingWidget.getElement())));
//DOM.setCapture(draggingWidget.getElement());
VkDesignerUtil.setCapture(draggingWidget);
if(invokingWidget instanceof Frame)
invokingWidget.setVisible(false);
draggingWidget.addMouseMoveHandler(new MouseMoveHandler() {
@Override
public void onMouseMove(MouseMoveEvent event) {
DOM.setStyleAttribute(draggingWidget.getElement(), "width", VkStateHelper.getInstance().getSnapHelper().getSnappedWidth(left, event.getClientX() + Window.getScrollLeft() - left) + "px");
DOM.setStyleAttribute(draggingWidget.getElement(), "height", VkStateHelper.getInstance().getSnapHelper().getSnappedHeight(top, event.getClientY() + Window.getScrollTop() - top) + "px");
}