/** * By default the popup will position itself in the center of the window. To use a different positioner use {@link * #PopupViewImpl(EventBus, PopupPositioner)} instead. * * @param eventBus The {@link EventBus}. */ protected PopupViewImpl(EventBus eventBus) { this(eventBus, new CenterPopupPositioner()); }
@Override protected int getTop(int popupHeight) { int top = super.getTop(popupHeight); return top < 0 ? 0 : top; } }
@Override protected int getLeft(int popupWidth) { int left = super.getLeft(popupWidth); return left < 0 ? 0 : left; }