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

Unable to change the size in 0.4.0 #483

Closed
JemmyWang94 opened this issue Aug 13, 2024 · 6 comments
Closed

Unable to change the size in 0.4.0 #483

JemmyWang94 opened this issue Aug 13, 2024 · 6 comments

Comments

@JemmyWang94
Copy link

In version 0.3.9 of pub, I was able to drag the mouse at the edge to change the size of the application, but after updating to 0.4.0, I was unable to change the size of the application by dragging the edge. Not change anything. just update to 0.4.0.

@JemmyWang94
Copy link
Author

await windowManager.ensureInitialized();

  WindowOptions windowOptions = const WindowOptions(
    center: true,
    backgroundColor: Colors.transparent,
    skipTaskbar: false,
    titleBarStyle: TitleBarStyle.hidden,
  );
  await windowManager.waitUntilReadyToShow(windowOptions, () async {
    await windowManager.show();
    await windowManager.focus();
  });

@hare-siterwell
Copy link

If titleBarStyle: TitleBarStyle.normal is set, it works fine. Did you update flutter 3.24?

@JemmyWang94
Copy link
Author

JemmyWang94 commented Aug 13, 2024

Yes, I have updated flutter 3.24, but it is the same result in 3.24 and 3.22.3.
When I set titleBarStyle: TitleBarStyle.normal, it works well, Thanks your advise. But I need to hide titlebar.
It's amazing, why this phenomenon occurs?

@clong1995
Copy link

me to

@unvictory2
Copy link

I have the same issue, did you manage to fix it? I also want to keep the titlebar hidden, but the window moveable/resizeable. I tried await windowManager.setResizable(true); and await windowManager.setMovable(true); but it doesn't seem to work.

lijy91 pushed a commit that referenced this issue Aug 18, 2024
* fix: win, adjustNCCALCSIZE with monitor coords

Signed-off-by: fufesou <[email protected]>

* #483

Signed-off-by: fufesou <[email protected]>

---------

Signed-off-by: fufesou <[email protected]>
@lijy91
Copy link
Member

lijy91 commented Aug 18, 2024

Fixed on #482, Please upgrade to 0.4.2

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

5 participants