Lines Matching refs:scrBounds
246 final Rectangle scrBounds = getBestScreenBounds(p);
247 //System.err.println("BestScreenBounds is " + scrBounds);
250 if (scrBounds == null) return super.computePopupBounds(px, py, pw, ph);
282 if (p.x < scrBounds.x) px -= (p.x + scrBounds.x);
283 if (p.y < scrBounds.y) py -= (p.y + scrBounds.y);
291 final int maxWidth = Math.min(scrBounds.width, top.x + scrBounds.x + scrBounds.width) - 2; // subtract some buffer space
303 return computePopupBoundsForMenu(px, py, pw, ph, itemCount, scrBounds);
316 if (r.y + r.height < top.y + scrBounds.y + scrBounds.height) return r;
323 protected Rectangle computePopupBoundsForMenu(final int px, final int py, final int pw, final int ph, final int itemCount, final Rectangle scrBounds) {
325 //System.err.println("itemCount: " +itemCount +" src: "+ scrBounds);
338 final Point top = new Point(0, scrBounds.y);
339 final Point bottom = new Point(0, scrBounds.y + scrBounds.height - 20); // Allow some slack