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
Probably caused by get_horizontal_shift in mvViewport_win32.cpp: it seems to be unaware that GetWindowRect is affected by DPI scaling, whereas DwmGetWindowAttribute is not. Therefore DPI scaling probably affects the overall result, though I don't see how it can produce large enough offset.
Another hypothesis is that GetWindowRect fails for some reason, and window_rectangle remains uninitialized, which yields random garbage in the return value.
To Reproduce
TBD
Steps to reproduce the behavior:
Go to '...'
Click on '....'
Scroll down to '....'
See error
Expected behavior
x_pos placing the viewport at the specified position.
Screenshots/Video
TBD
Standalone, minimal, complete and verifiable example
TBD
# Here's some code anyone can copy and paste to reproduce your issueimportdearpygui.dearpyguiasdpgdpg.create_context()
dpg.create_viewport()
dpg.setup_dearpygui()
withdpg.window(label="tutorial"):
dpg.add_button(label="Press me")
more_code_to_explain_my_issue()
dpg.show_viewport()
dpg.start_dearpygui()
dpg.destroy_context()
The text was updated successfully, but these errors were encountered:
Version of Dear PyGui
Version: 1.11.1
Operating System: Windows 10 (10.0.19045).
My Issue/Question
When UI scaling is set to 200% in Windows, DPG viewport sticks to the left edge of the screen no matter what
x_pos
is specified for the viewport.Reported in this Discord thread:
https://discord.com/channels/736279277242417272/1142953321821372550/1259654875193802864
Probably caused by
get_horizontal_shift
inmvViewport_win32.cpp
: it seems to be unaware thatGetWindowRect
is affected by DPI scaling, whereasDwmGetWindowAttribute
is not. Therefore DPI scaling probably affects the overall result, though I don't see how it can produce large enough offset.Another hypothesis is that
GetWindowRect
fails for some reason, andwindow_rectangle
remains uninitialized, which yields random garbage in the return value.To Reproduce
TBD
Steps to reproduce the behavior:
Expected behavior
x_pos
placing the viewport at the specified position.Screenshots/Video
TBD
Standalone, minimal, complete and verifiable example
TBD
The text was updated successfully, but these errors were encountered: