/** Stop monitoring for parent element resizes. */ @Override protected void onUnload() { if (resizeTimer != null) { resizeTimer.cancel(); resizeTimer = null; } super.onUnload(); }
@Override protected void onUnload() { super.onUnload(); // Just to be sure, we perform cleanup when the popup is unloaded (i.e. // removed from the DOM). This is normally taken care of in hide(), but it // can be missed if someone removes the popup directly from the RootPanel. if (isShowing()) { resizeAnimation.setState(false, true); } }