fixed IllegalComponentStateException when invoker is not showing in SubMenuUsabilityHelper (issue #692)

This commit is contained in:
Karl Tauber
2023-06-20 23:15:11 +02:00
parent b391465fbf
commit e908362f0a
2 changed files with 9 additions and 1 deletions

View File

@@ -1,6 +1,14 @@
FlatLaf Change Log
==================
## 3.2-SNAPSHOT
#### Fixed bugs
- Fixed `IllegalComponentStateException` when invoker is not showing in
`SubMenuUsabilityHelper`. (issue #692)
## 3.1.1
- IntelliJ Themes:

View File

@@ -153,7 +153,7 @@ debug*/
// get invoker screen bounds
Component invoker = popup.getInvoker();
invokerBounds = (invoker != null)
invokerBounds = (invoker != null && invoker.isShowing())
? new Rectangle( invoker.getLocationOnScreen(), invoker.getSize() )
: null;