mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
se: fix annoying 2px scrolling on mac
This commit is contained in:
@@ -2243,12 +2243,11 @@ public class SearchEverywhereAction extends AnAction implements CustomComponentA
|
||||
final int extraHeight = pane.getHorizontalScrollBar().getHeight() + 1;
|
||||
sz = new Dimension(Math.min(getPopupMaxWidth(), Math.max(getField().getWidth(), sz.width + extraWidth)), Math.min(getPopupMaxWidth(), sz.height + extraHeight));
|
||||
sz.width += 20;
|
||||
sz.height+=2;
|
||||
} else {
|
||||
sz.width+=2;
|
||||
sz.height+=2;
|
||||
sz.width += 2;
|
||||
}
|
||||
}
|
||||
sz.height += 2;
|
||||
sz.width = Math.max(sz.width, myPopup.getSize().width);
|
||||
myPopup.setSize(sz);
|
||||
if (myActionEvent != null && myActionEvent.getInputEvent() == null) {
|
||||
|
||||
Reference in New Issue
Block a user