mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-109467 Too big tooltip for Close Icon (Debug Window)
This commit is contained in:
@@ -502,6 +502,11 @@ public class BalloonImpl implements Balloon, IdeTooltip.Ui {
|
||||
myLayeredPane.remove(myComp);
|
||||
|
||||
createComponent();
|
||||
if (!new Rectangle(myComp.getSize()).contains(new Rectangle(myLayeredPane.getSize()))) { // Balloon is bigger than window, don't show it at all.
|
||||
myLayeredPane = null;
|
||||
hide();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
for (JBPopupListener each : myListeners) {
|
||||
|
||||
Reference in New Issue
Block a user