mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-06 22:10:54 +03:00
fixed IllegalComponentStateException when invoker is not showing in SubMenuUsabilityHelper (issue #692)
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user