Skip to content

Popup border issues (Win11 VM-specific) #1101

@ololololo93809

Description

@ololololo93809

We use Flatlaf at my workplace for the software we are developing. Our product runs on different versions of Windows, MacOS, and Linux. Popups (that is, Popup, PopupMenu, Combobox dropdown, and ToolTip) work "as they should" and we have done no customizing beyond what Flatlaf defaults to for those so far.

However, our internal development is entirely done on VMs, accessed through remote desktop and similar. Most of these VMs are currently running Win11. We have an issue where specifically on Win11 VMs, the borders for all these popup-like components are broken. "Broken" meaning that there is no border visible, no corner radius, and no drop shadow around the popup. The behaviour is perfectly fine in the release versions (I made sure to check in with QA), and this behaviour only happens in Win11 VMs specifically. I can attest to that as my VM was upgraded from Win10 to Win11 not too long ago, which is precisely when this issue started happening.

Changing the (global) style keys for borderCornerRadius on Popup, PopupMenu, ToolTip, and ComboBox to 0 "fixes" it in the sense that the border and drop shadow return, but of course without the default corner radius. Any other values of borderCornerRadius have no effect.

Now, checking the Win11 documentation on customizing those border corners shows that the feature for rounded border corners is specifically disabled when running in a VM. My thinking here is that FlatLaf tries to paint the border, gets some crap value from Win11 running in a VM when trying to access the Win11 border corner radius properties, and then is unable to draw the border (and drop shadow). I was not able to investigate deeper than this yet because there's more pressing issues to take care of at work right now as this is "just annoying in development".

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions