Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Icon location in title bar of maximized window different when using native window decorations #326

Closed
PikeTec opened this issue May 18, 2021 · 1 comment
Milestone

Comments

@PikeTec
Copy link

PikeTec commented May 18, 2021

When using native window decorations the title bar icon of a maximized window is displayed further to the right than when not using it and the window can't be closed when double clicking in the most top-left pixels. Even with "TitlePane.iconMargins = 0,0,0,0" (which looks horrible in normal size) there is an unclickable area at the top.

FlatLaf 1.1.2 with Amazon Coretto 15.0.2

Disabled
disabled

Enabled
enabled

Enabled with no margin
margin_000

DevCharly added a commit that referenced this issue May 18, 2021
@DevCharly
Copy link
Collaborator

Thanks for pointing out this difference. Didn't notice this before.

Commit 35f9736 increases the size of the "hit area" for the icon when maximized.
It is now the blue rectangle (in below screenshot) where you can double-click to close the frame:

image

Changing the icon location is not necessary. IMHO it looks better with some space between the left edge and the icon.

@DevCharly DevCharly added this to the 1.2 milestone May 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants