private void closePopup() { if (this.hpC) { this.hpE.beG(); this.hpC = false; MQ.WK().WN(); } }
private void cdN() { if (!this.hpC) { Or localOr = this.hpE.getPrefSize(); int i = localOr.width; int j = localOr.height; int k = getDisplayX(); int n = getDisplayY(); bsP localbsP = bsP.getInstance(); aFG localaFG1 = this.aWn; aFG localaFG2 = this.drn; int i1 = getDisplayY() + localaFG1.iP(getHeight()) - localaFG2.iP(j); if ((i1 < 0) || (i1 > localbsP.getAppearance().getContentHeight() - j)) { localaFG1 = localaFG1.aSd(); localaFG2 = localaFG2.aSd(); } i1 = getDisplayY() + localaFG1.iP(getHeight()) - localaFG2.iP(j); i1 = Math.max(0, Math.min(i1, localbsP.getAppearance().getContentHeight() - j)); if ((n - j < 0) && (n + getHeight() + j > localbsP.getHeight())) { j = n; i1 = 0; } int m = k + localaFG1.iO(getWidth()) - localaFG2.iO(i); if ((m < 0) || (m > localbsP.getAppearance().getContentWidth() - i)) { localaFG1 = localaFG1.aSc(); localaFG2 = localaFG2.aSc(); } m = getDisplayX() + localaFG1.iO(getWidth()) - localaFG2.iO(i); m = Math.max(0, Math.min(m, localbsP.getAppearance().getContentWidth() - i)); if ((k - i < 0) && (k + getWidth() + i > localbsP.getWidth())) { i = k; m = 0; } this.hpE.setSizeToPrefSize(); i = Math.max(this.hpE.getWidth(), i); j = Math.max(this.hpE.getHeight(), j); this.hpE.setSize(i, j); this.hpE.setPosition(m, i1); this.hpE.setNonBlocking(false); localbsP.getLayeredContainer().b(this.hpE, 30000); this.hpC = true; this.hpD = true; MQ.WK().WM(); } }