sparklelcm333
|
15ba2bdf93
|
fix: 修复回归的窗口启动时偏右下偏移 (#9875)
|
2026-08-05 10:38:51 +08:00 |
|
2dust
|
1ab9757498
|
Revert "fix: 在窗口初始化前设置保存的尺寸,消除启动时偏右下偏移 (#9498)"
This reverts commit 8147b39723.
https://github.com/2dust/v2rayN/issues/9740
|
2026-07-14 17:27:30 +08:00 |
|
sparklelcm333
|
1869a95700
|
fix: Desktop(Avalonia) 移除子对话框最小化按钮,仅禁 CanMinimize (#9526)
|
2026-06-10 20:45:23 +08:00 |
|
 sparklelcm333and2dust
|
8147b39723
|
fix: 在窗口初始化前设置保存的尺寸,消除启动时偏右下偏移 (#9498)
* fix: 在窗口初始化前设置保存的尺寸,消除启动时偏右下偏移
WindowStartupLocation="CenterScreen"(来自 XAML)能正确包含 chrome 居中窗口,
但只能使用生效时的 Width/Height。旧代码在 OnLoaded 中设置保存的尺寸为时已晚
(CenterScreen 已应用),随后又用不含 chrome 的手工计算覆盖 Position,
导致窗口每次启动偏右下。
修复方式:在 Initialized 事件中设置保存的 Width/Height。
Avalonia 中 Initialized 在 Show() 过程中触发,早于 WindowStartupLocation 生效,
因此 CenterScreen 能用正确的保存尺寸居中。
同时移除 OnLoaded 中重复的 Width/Height 设置(Initialized 中已设置)。
* Update WindowBase.cs
---------
Co-authored-by: 2dust <31833384+2dust@users.noreply.github.com>
|
2026-06-07 14:59:50 +08:00 |
|
2dust
|
4da59cd767
|
Rename IsOSX to IsMacOS in Utils and usages
|
2025-11-09 10:52:46 +08:00 |
|
2dust
|
cb5069bcfc
|
Optimize and improve GlobalUsings
|
2025-10-19 14:13:26 +08:00 |
|
2dust
|
33d9c5db6c
|
up GlobalUsings
|
2025-09-13 14:46:35 +08:00 |
|
2dust
|
d5c50ef27c
|
Rename Manager
|
2025-08-17 17:31:55 +08:00 |
|
2dust
|
2060ac18fd
|
Add Manager folder
|
2025-08-17 16:52:51 +08:00 |
|
2dust
|
6d686b284d
|
Fix macOS scaling size
|
2025-07-04 20:48:32 +08:00 |
|
2dust
|
4141f451b7
|
The window height and width variable type is changed from double to int
|
2025-07-02 20:53:53 +08:00 |
|
2dust
|
7a9ee6e9e2
|
Each window can remember its size
|
2025-07-01 19:39:27 +08:00 |
|