Skip to content

Conversation

@damywise
Copy link
Contributor

@damywise damywise commented Jan 9, 2022

So I did some testing and found that these codes:

  • Enables resizing from all border sides.
  • Makes it so that the window doesn't resize that much (reduces only one pixel on the left, right, and bottom border) when changing titleBarStyle to "hidden".
  • Removing the WM_NCHITTEST makes the edges (top left, bottom right, etc) resize region bigger than it should be.
  • fOnResizeBorder should've been set to true (it was set to false) to enable resizing from top border.

Issues:

  • The top side originally goes inside the title bar so someone has to figure out how to do that in titleBarStyle = "hidden".
    The top border IS resizable in titleBarStyle = "hidden" but only for exactly 1 pixel and that is very annoying.
  • SetResizable makes weird behavior (as usual) during titleBarStyle = "hidden"

So I did some testing and found that these codes:
- Enables resizing from all border sides.
- Makes it so that the window doesn't resize that much (reduces only one pixel on the left, right, and bottom border) when changing titleBarStyle to "hidden".
- Removing the WM_NCHITTEST makes the edges (top left, bottom right, etc) resize region bigger than it should be.
- fOnResizeBorder should've been set to true (it was set to false) to enable resizing from top border.
Issues: 
- The top side originally goes inside the title bar so someone has to figure out how to do that in titleBarStyle = "hidden".
  The top border IS resizable in titleBarStyle = "hidden" but only for exactly 1 pixel and that is very annoying.
- SetResizable makes weird behavior (as usual) during titleBarStyle = "hidden"
@lijy91
Copy link
Member

lijy91 commented Jan 11, 2022

Thanks for your PR.

@lijy91
Copy link
Member

lijy91 commented Jan 11, 2022

Will continue to follow up on these issues.

@lijy91 lijy91 merged commit 47550df into leanflutter:main Jan 11, 2022
@damywise damywise deleted the patch-1 branch April 29, 2022 23:09
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

Successfully merging this pull request may close these issues.

3 participants