Package com.google.gwt.query.client.plugins.UiPlugin

Examples of com.google.gwt.query.client.plugins.UiPlugin.Dimension


    this.offsetClick = offsetClick;
  }

  void cacheHelperSize() {
    if (helper != null) {
      setHelperDimension(new Dimension(helper.get(0)));
    }

  }
View Full Code Here


public class DraggableHandlerImplIE6 extends DraggableHandlerImplIE {

  @Override
  public int[] calculateContainment(DraggableHandler draggableHandler, Offset containerOffset,
                                    Element containerElement, boolean overflow) {
    Dimension helperDimension = draggableHandler.getHelperDimension();
    // don't substract margin in ie 6 and 7
    return new int[]{
        containerOffset.left
            + (int) $(containerElement).cur("borderLeftWidth", true)
            + (int) $(containerElement).cur("paddingLeft", true),
        containerOffset.top
            + (int) $(containerElement).cur("borderTopWidth", true)
            + (int) $(containerElement).cur("paddingTop", true),
        containerOffset.left
            + (overflow ? Math.max(containerElement.getScrollWidth(),
            containerElement.getOffsetWidth()) : containerElement
            .getOffsetWidth())
            - (int) $(containerElement).cur("borderLeftWidth", true)
            - (int) $(containerElement).cur("paddingRight", true)
            - helperDimension.getWidth(),
        containerOffset.top
            + (overflow ? Math.max(containerElement.getScrollHeight(),
            containerElement.getOffsetHeight()) : containerElement
            .getOffsetHeight())
            - (int) $(containerElement).cur("borderTopWidth", true)
            - (int) $(containerElement).cur("paddingBottom", true)
            - helperDimension.getHeight()};
  }
View Full Code Here

TOP

Related Classes of com.google.gwt.query.client.plugins.UiPlugin.Dimension

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.