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
Assigning data to a DetailedList works at first, but reassigning the data always causes the rows to become small and "invisible" (no data is visible on them). By hovering the mouse over them you can still select them, and the correct number of rows are present, but the DetailedList is still unusable in that state because of its appearance.
Steps to reproduce
import toga
from toga.style import Pack
list1 = [{"title" : str(n), "subtitle": "sub", "icon" : None} for n in range(30)]
list2 = [{"title" : str(n), "subtitle": "sub", "icon" : None} for n in range(30,60)]
def build(app):
box = toga.Box()
dl = toga.DetailedList(style=Pack(flex=1), on_select=on_sel)
dl.data = list1
box.add(dl)
return box
def on_sel(widget, row):
widget.data = list2
def main():
return toga.App("First App", "org.volxage", startup=build)
if __name__ == "__main__":
main().main_loop()
Running this code, you can see the rows initially render correctly, but after selecting a row the symptoms appear.
Expected behavior
The data is supposed to be reassigned without causing the rows to be "invisible".
Describe the bug
Assigning data to a DetailedList works at first, but reassigning the data always causes the rows to become small and "invisible" (no data is visible on them). By hovering the mouse over them you can still select them, and the correct number of rows are present, but the DetailedList is still unusable in that state because of its appearance.
Steps to reproduce
Running this code, you can see the rows initially render correctly, but after selecting a row the symptoms appear.
Expected behavior
The data is supposed to be reassigned without causing the rows to be "invisible".
Screenshots
No response
Environment
Logs
Additional context
No response
The text was updated successfully, but these errors were encountered: