Package com.google.collide.client.ui.menu.PositionController

Examples of com.google.collide.client.ui.menu.PositionController.HorizontalAlign


    this.isEnabled = isEnabled;
  }

  private void setPositionStyle() {
    VerticalAlign vAlign = positioner.getVerticalAlignment();
    HorizontalAlign hAlign = positioner.getHorizontalAlignment();
    switch (positioner.getVerticalAlignment()) {
      case TOP:
        contentElement.addClassName(css.tooltipAbove());
        break;
      case BOTTOM:
View Full Code Here


  private void updateArrow(int x, int y) {
    Element arrow = getView().getArrow();
    CSSStyleDeclaration style = arrow.getStyle();

    HorizontalAlign alignment = positionController.getPositioner().getHorizontalAlignment();
    style.setLeft("auto");
    style.setRight("auto");
    if (alignment == HorizontalAlign.LEFT) {
      style.setLeft(-(x * 2), CSSStyleDeclaration.Unit.PX);
    } else {
View Full Code Here

TOP

Related Classes of com.google.collide.client.ui.menu.PositionController.HorizontalAlign

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.