fix(windows, flutter): 修复窗口初始位置缩放适配问题#2026
Open
Thunder-077 wants to merge 5 commits into
Open
Conversation
Support run on demand Optimize windows ipc Optimize windows arm64 Optimize build Optimize some details Update core
1. 移除Windows窗口创建时对origin坐标的缩放处理,匹配Flutter逻辑像素坐标
2. 重构Dart层窗口位置校验逻辑:
- 使用visibleSize计算逻辑显示区域,不再直接使用物理尺寸
- 仅校验窗口左上角坐标而非同时校验两角
- 无指定位置时默认居中显示
…-multi-monitor-window-rendering # Conflicts: # arb/intl_en.arb # arb/intl_ja.arb # arb/intl_ru.arb # arb/intl_zh_CN.arb # lib/core/lib.dart # lib/l10n/intl/messages_en.dart # lib/l10n/intl/messages_ja.dart # lib/l10n/intl/messages_ru.dart # lib/l10n/intl/messages_zh_CN.dart # lib/l10n/l10n.dart # lib/manager/core_manager.dart # lib/views/config/on_demand.dart # plugins/setup/buildkit/build_tool/lib/src/build_tool.dart # plugins/setup/buildkit/build_tool/lib/src/target.dart # plugins/setup/buildkit/gradle/plugin.gradle # pubspec.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
解决Windows系统下笔记本电脑外接显示屏,由于 DPI 缩放不一致,导致应用窗口无法显示的问题