mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
AbstractPopup.showInCenterOf regression fixed
This commit is contained in:
@@ -454,8 +454,9 @@ public class AbstractPopup implements JBPopup {
|
||||
|
||||
@Override
|
||||
public void showInCenterOf(@NotNull Component aComponent) {
|
||||
HelpTooltip.setMasterPopup(aComponent, this);
|
||||
Point popupPoint = getCenterOf(aComponent, getPreferredContentSize());
|
||||
show(new RelativePoint(aComponent, popupPoint));
|
||||
show(aComponent, popupPoint.x, popupPoint.y, false);
|
||||
}
|
||||
|
||||
|
||||
@@ -469,7 +470,6 @@ public class AbstractPopup implements JBPopup {
|
||||
@Override
|
||||
public void show(@NotNull RelativePoint aPoint) {
|
||||
HelpTooltip.setMasterPopup(aPoint.getOriginalComponent(), this);
|
||||
|
||||
Point screenPoint = aPoint.getScreenPoint();
|
||||
show(aPoint.getComponent(), screenPoint.x, screenPoint.y, false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user