Exemplo n.º 1
0
  private void openPanel() {

    int winWidth = popupWidth != -1 ? popupWidth : header.getOffsetWidth() * 2;
    int winHeight = (int) (winWidth / GOLDEN_RATIO);

    popup.setWidth(winWidth + "px");
    popup.setHeight(winHeight + "px");

    // right to left
    if (isRightToLeft) {
      int popupLeft = header.getAbsoluteLeft() - (winWidth - header.getOffsetWidth());
      popup.setPopupPosition(popupLeft - 15, header.getAbsoluteTop() + 21);
    } else {
      int popupLeft = header.getAbsoluteLeft();
      popup.setPopupPosition(popupLeft, header.getAbsoluteTop() + 21);
    }

    popup.show();
  }
Exemplo n.º 2
0
  private void openPanel() {

    if (isEnabled) {
      popup.setWidth((header.getOffsetWidth() - 10) + "px");
      popup.setHeight((cellList.getRowCount() * 25) + "px");

      popup.setPopupPosition(header.getAbsoluteLeft(), header.getAbsoluteTop() + 22);

      popup.show();
    }
  }