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

[Bug] 在屏幕缩放发生变化时启动器窗口大小发生异常 #983

Open
1 task done
YifePlayte opened this issue Jul 28, 2024 · 0 comments
Open
1 task done
Labels
triage Issue needs to be triaged

Comments

@YifePlayte
Copy link

Checklist

  • My issue was not mentioned by others, and it is not a duplicate issue.

Description

在屏幕缩放发生变化(如手动调整、更换显示器导致的屏幕缩放比例发生变化),导致启动器窗口填满当前屏幕后,再恢复原屏幕缩放(即启动器正常情况下不会占满整个屏幕时),启动器大小异常变化(依旧填满屏幕)。
屏幕缩放发生变化在使用手机/平板等移动小屏设备(相比正常电脑显示器而言)上使用虚拟显示器串流的场景十分常见,希望能够修复。

Reproduction Steps

在一块1920x1080的显示器上,屏幕处于125%缩放时打开Starward,然后不论Starward处于前台还是托盘中(最小化不会),将Starward所处的这块显示器的缩放改为175%(即Starward会由于屏幕空间不足而占满全屏)后(此时拖动Starward窗体的位置会影响下一步之后窗口的大小,不移动则为全屏),再更改回正常125%缩放。

Expected Behavior

Starward的窗口尺寸不受影响,正常显示

Screenshots

image
image
image

Starward Version

0.12.1

Windows Version

22631.3958

Log

[21:50:28.050] [INFO] 
Welcome to Starward v0.12.1
System: Microsoft Windows NT 10.0.22631.0
Command Line: E:\game\Genshin\Starward\app-0.12.1\Starward.dll

[21:50:28.069] [INFO] Starward.Services.DatabaseService
Database path is 'E:\game\Genshin\Starward'

[21:50:28.083] [INFO] Starward.Services.DatabaseService
Database version is 9, target version is 9.

[21:50:28.115] [INFO] Starward.Pages.MainPage
Last game region is nap_cn

[21:50:28.122] [INFO] Starward.Pages.MainPage
Navigate to "GameLauncherPage" with param nap_cn

[21:50:28.756] [INFO] Starward.Pages.GameLauncherPage
Game install path of nap_cn: "E:\game\ZenlessZoneZero\ZenlessZoneZero Game"

[21:50:28.767] [INFO] Starward.Pages.GameLauncherPage
Acutal version and gamebiz of nap_cn is "1.0.0".

[21:50:29.470] [INFO] Starward.Services.UpdateService
Start to check update (Preview: True, Arch: X64)

[21:50:30.291] [INFO] Starward.Services.UpdateService
Current version: "0.12.1", latest version: "0.12.1", ignore version: null

Additional Context

可能的解决方案为,在窗口重新获得焦点后(或屏幕参数发生变化时,不清楚能不能拿到,窗口焦点我认为最容易获得),尝试重设窗口大小。

@YifePlayte YifePlayte added the triage Issue needs to be triaged label Jul 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage Issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

1 participant