SetAspectRatio should constrain the content area consistently across platforms
还没有人认领这个 Issue。
评估
调研方向
Start at Window::SetAspectRatio and trace the platform-specific implementations, especially Windows WM_SIZING and programmatic resize handling, alongside Linux geometry hints and macOS contentAspectRatio. Done means the Flutter content area, rather than the whole window including non-client decorations, maintains the requested aspect ratio consistently across platforms.
由索引模型根据 Issue 内容生成。
描述
Window::SetAspectRatio() behaves differently per platform:
- macOS constrains the content area (
contentAspectRatio), unless the content is full-size. - Windows constrains the whole window rect in
WM_SIZING, title bar and borders included, so the Flutter view ends up with a different ratio. - Linux uses geometry hints on the window, and users report the content not matching the ratio.
Expected: the ratio applies to the content area on all platforms. On Windows, subtract the non-client size before applying the ratio in WM_SIZING, and apply it to programmatic resizes too.
Background:
- leanflutter/window_manager#437: exclude the title bar from the aspect-ratio calculation
- leanflutter/window_manager#520: actual window ratio differs from the one set
- leanflutter/window_manager#566: setAspectRatio behaves differently on Windows and Linux
- 主要语言
- C++
- 星标
- 34
- 派生
- 7
- 平均合并
- 3 天 1 小时
- 30 天内合并 PR
- 1
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
libnativeapi/nativeapi 的其他 Issue
-
bug
难度 4/5 3-5 天 新手友好度 45/100
libnativeapi/nativeapi#81 ·
-
bug
难度 4/5 3-5 天 新手友好度 45/100
libnativeapi/nativeapi#80 ·
-
bug
难度 4/5 3-5 天 新手友好度 35/100
libnativeapi/nativeapi#79 ·
-
bug
难度 4/5 3-5 天 新手友好度 45/100
libnativeapi/nativeapi#78 ·
-
bug
难度 4/5 3-5 天 新手友好度 45/100
libnativeapi/nativeapi#77 ·
查看 libnativeapi/nativeapi 的全部 Issue
相似的 Issue
-
ai_reviewed
难度 2/5 1-3 小时 新手友好度 68/100
ydb-platform/ydb#53869 · 3 条评论 ·
-
bug cert blocker needs triage
难度 2/5 1-3 小时 新手友好度 82/100
project-chip/connectedhomeip#74373 ·
-
upstream update
难度 2/5 1-3 小时 新手友好度 75/100
conan-io/conan-center-index#31035 ·
-
Bug
难度 2/5 1-3 小时 新手友好度 68/100
-
documentation
难度 1/5 1 小时以内 新手友好度 85/100
vllm-project/vllm-ascend#17329 ·