@Override protected void onWindowResize(int width, int height) { super.onWindowResize(width, height); // this can only be reached if the tooltip is already visible, show it again // to sync anchor show(); }
@Override public void showAt(int x, int y) { if (disabled) return; lastActive = new Date(); clearTimers(); super.showAt(x, y); if (toolTipConfig.getAnchor() != null) { anchorEl.show(); syncAnchor(); } else { anchorEl.hide(); } if (toolTipConfig.getDismissDelay() > 0 && toolTipConfig.isAutoHide() && !toolTipConfig.isCloseable()) { dismissTimer = new Timer() { @Override public void run() { hide(); } }; dismissTimer.schedule(toolTipConfig.getDismissDelay()); } }
@Override protected void onAfterFirstAttach() { super.onAfterFirstAttach(); anchorEl.setZIndex(getElement().getZIndex() + 1); }
@Override public void hide() { clearTimers(); lastActive = new Date(); super.hide(); }