You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(windows): implement SetMinimumSize/SetMaximumSize via WM_GETMINMAXINFO
The SetMinimumSize and SetMaximumSize methods on Windows were empty
placeholder implementations that did nothing. This caused setting
window size constraints to have no effect in Flutter apps and other
consumers.
Fix by:
- Storing min/max size constraints in Window::Impl
- Registering a WM_GETMINMAXINFO handler via WindowMessageDispatcher
that reads the constraints from the Window object and sets
ptMinTrackSize/ptMaxTrackSize on the MINMAXINFO structure
- This works for both self-created windows and Flutter-hosted
windows (via Window(void*) constructor)
- Triggering SWP_FRAMECHANGED after setting constraints so the
window immediately re-evaluates them
- Properly cleaning up the handler in the destructor
Closeslibnativeapi/nativeapi-flutter#9
0 commit comments