-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P3
-
Affects Version/s: 11, 14, 15
-
Component/s: client-libs
-
b07
-
generic
-
generic
| Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
|---|---|---|---|---|---|---|
| JDK-8373450 | 17.0.19-oracle | Alexey Ivanov | P3 | Resolved | Fixed | master |
| JDK-8373451 | 11.0.31-oracle | Alexey Ivanov | P3 | Resolved | Fixed | master |
In the test/jdk/javax/swing/GraphicsConfigNotifier/StalePreferredSize.java the next code was added to workaround this bug:
if (component instanceof JMenuItem) {
MenuItemLayoutHelper.clearUsedParentClientProperties((JMenuItem)component);
}
The MenuItemLayoutHelper.clearUsedParentClientProperties must be called automatically when the DPI was changed.
Similar bug for other components:
https://bugs.openjdk.java.net/browse/JDK-8201552
if (component instanceof JMenuItem) {
MenuItemLayoutHelper.clearUsedParentClientProperties((JMenuItem)component);
}
The MenuItemLayoutHelper.clearUsedParentClientProperties must be called automatically when the DPI was changed.
Similar bug for other components:
https://bugs.openjdk.java.net/browse/JDK-8201552
- backported by
-
JDK-8373450 MenuItem may cache the size and did not update it when the screen DPI is changed
-
- Resolved
-
-
JDK-8373451 MenuItem may cache the size and did not update it when the screen DPI is changed
-
- Resolved
-