On Fri, 31 Jul 2026 19:27:07 GMT, Alexey Ivanov <[email protected]> wrote:
>> I noticed a weird effect on Windows 10. Initially, the drop down menu is >> rendered without reserving the space for the icon column (as expected), but >> after I open the submenu, the popup repaints… not immediately but rather as >> one hovers mouse over menu items. This shouldn't be happening. >> >> <img width="216" height="140" alt="The third menu item including the submenu >> title aren't aligned" >> src="https://github.com/user-attachments/assets/2267f525-dc0b-4cb6-b646-1248252107d5" >> /> >> >> ~~I couldn't reproduce such a behaviour on Windows 11 where the drop down >> reserves the space for icon column right away.~~ I used the wrong build in >> my testing on Windows 11. I see the same behaviour. >> >> <img width="218" height="140" alt="The third menu item including the submenu >> title aren't aligned" >> src="https://github.com/user-attachments/assets/333382dc-c0fa-4693-8e9d-c8c3e714b093" >> /> > > This is bugged. If I add an icon to the second menu item, it doesn't add the > column for icon, and renders the text on top of the icon. > > <img width="218" height="140" alt="The second menu item renders text on top > of the icon" > src="https://github.com/user-attachments/assets/ff9b6c5f-d3f9-4206-ae3a-ed618632f16a" > /> The above tests also highlights the problem that I raised in the very first code review for [JDK-8348760](https://bugs.openjdk.org/browse/JDK-8348760) and that hasn't been addressed yet: when a column for the icon is added, the width of the popup doesn't increase. It remains exactly the same *with* and *without* the second column for the icon, which makes the text flush closer to the right edge and possibly clash with an accelerator or a submenu arrow indicator. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/29730#discussion_r3692907255
