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
I tried to make a screen layout showing multiple tables next to each other (with scroll bars in case the window can not fit everything). To arrange them, I used groups (with horizontal=True).
The result seems however to act rather strange. Mainly horizontal scrolling seems to be broken: all table content outside the original view doesn't render. I made a small example with the elements I used in my real program (see below). If you resize till you get a horizontal scroll bar and then scroll, you should see the effect (I run on MacOS).
The text below the table (in the same group), also seems to influence the behaviour. (If you remove it, the scrolling & rendering acts differently.)
For some reason, the tables also partially render on top of each other.
From the documentation (and many searches) I could not determine if it is allowed to put tables in groups or not. Can anyone clarify if what I try should work or not?
import dearpygui.dearpygui as dpg
dpg.create_context()
with dpg.window(label="Tutorial",horizontal_scrollbar=True):
with dpg.group(horizontal=True):
with dpg.group():
dpg.add_text("table 1")
with dpg.table(header_row=False):
for i in range(5):
dpg.add_table_column()
for i in range(300):
with dpg.table_row():
for j in range(5):
dpg.add_text(f"T1 Row{i} Column{j}")
dpg.add_text("under table 1")
with dpg.group():
dpg.add_text("table 2")
with dpg.table(header_row=False):
for i in range(5):
dpg.add_table_column()
for i in range(310):
with dpg.table_row():
for j in range(5):
dpg.add_text(f"T2 Row{i} Column{j}")
dpg.add_text("under table 2")
dpg.show_metrics()
dpg.create_viewport(title='Custom Title', width=800, height=600)
dpg.setup_dearpygui()
dpg.show_viewport()
dpg.start_dearpygui()
dpg.destroy_context()
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi all,
I tried to make a screen layout showing multiple tables next to each other (with scroll bars in case the window can not fit everything). To arrange them, I used groups (with horizontal=True).
The result seems however to act rather strange. Mainly horizontal scrolling seems to be broken: all table content outside the original view doesn't render. I made a small example with the elements I used in my real program (see below). If you resize till you get a horizontal scroll bar and then scroll, you should see the effect (I run on MacOS).
The text below the table (in the same group), also seems to influence the behaviour. (If you remove it, the scrolling & rendering acts differently.)
For some reason, the tables also partially render on top of each other.
From the documentation (and many searches) I could not determine if it is allowed to put tables in groups or not. Can anyone clarify if what I try should work or not?
Beta Was this translation helpful? Give feedback.
All reactions