-
-
Notifications
You must be signed in to change notification settings - Fork 703
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
set_viewport_decorated(False) does not work well with primary_window #1130
Comments
Fixed in next release. |
It is not fixed yet. |
Will recheck this! |
V 1.6.2 Fixed; import dearpygui.dearpygui as dpg
dpg.create_context()
dpg.create_viewport(title='Custom Title', width=400, height=400, decorated=False)
dpg.setup_dearpygui()
with dpg.window(label="tutorial") as main_window:
dpg.add_button(label="Press me")
dpg.add_text('............................................................................................................................................................')
dpg.set_primary_window(main_window, True)
dpg.show_viewport()
dpg.start_dearpygui()
dpg.destroy_context() Bug should be closed ! |
There is still an issue with import dearpygui.dearpygui as dpg
dpg.create_context()
with dpg.window() as primary_window:
dpg.add_text("Hello World")
dpg.create_viewport(width=200, height=200, decorated=False, x_pos=500)
dpg.set_primary_window(primary_window, True)
dpg.setup_dearpygui()
dpg.show_viewport()
dpg.start_dearpygui()
dpg.destroy_context() Notice the thin gray border on the top and left edges of the viewport - which is not present on the bottom and right edges. If you remove |
Hey @my1e5 I can reproduce it and yes it isn't quite correct. |
Not a big deal but I'd like to point out that the fix makes the
Since the |
That is true ! Thanks for the hint ! |
Win 10, DPG 0.8.54
set_viewport_decorated(False) does not work well with primary_window. The code below results in the screenshot below. The primary window does not cover the entire viewport.
The text was updated successfully, but these errors were encountered: