Dimension () { if (myPopup != null) { final Window popupWindow = getContentWindow(myContent); if (popupWindow != null) { Dimension size = popupWindow.getSize(); size.height -= getAdComponentHeight(); return size; } } return myForcedSize; }