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

🐛 With PaneDisplayMode.top, 'Win UI for Flutter's main window cannot be resized using mouse events on NavigationAppBar's window caption #902

Closed
kthguru opened this issue Jul 28, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@kthguru
Copy link

kthguru commented Jul 28, 2023

Describe the bug
With PaneDisplayMode.top, NavigationAppBar does not accept the mouse events (i.e., double-click and drag) occurred on Window Caption area that calls DragToMoveArea class of WindowManager (v0.3.0, ..., v0.3.5).
So, we cannot resize the Fluent UI based main window using double-clicking or dragging on Window Caption.
Alternatively, we can resize only using the text entitled 'Win UI for Flutter' on Window Caption area.
But, NavigationAppBar with other PaneDisplayMode (such as open, compact, minimal, auto) does work well.

To Reproduce

  1. Run 'Win UI for Flutter' program
  2. Go to 'Settings'
  3. Click on 'top' in 'Navigation Pane Display Mode'
  4. Mouse double-click or drag (out of text area entitled 'Win UI for Flutter') on the Window Caption area
  5. See the Window Caption has no response according to the mount event (such as double-click or drag)
    • macOS: double-click is disabled, drag only is enabled.
    • Windows and Linux: both double-click and drag are disabled.

Expected behavior
Using mouse events, the Win UI for Flutter's main window should be resized when we click on 'top' in 'Navigation Pane Display Mode' in 'Settings'.

  • Drag should be enabled on window caption
  • Double-click should be enabled on window caption

Screenshots
Step 1. choose 'top' here
Step 2. double-click or drag on the window caption area

resize

Additional context
We want to resize the window in NavigationAppBar with PaneDisplayMode.top.
How can we do that? Is there any solution?
Please advise if there are possible ways to solve the problem.

@kthguru kthguru changed the title 🐛 With PaneDisplayMode.top, NavigationAppBar's window caption cannot be resized using mouse events 🐛 With PaneDisplayMode.top, 'Win UI for Flutter's main window cannot be resized using mouse events on NavigationAppBar's window caption Jul 28, 2023
@bdlukaa bdlukaa added the bug Something isn't working label Jul 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants