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
OS: Raspbian Bookworm (Raspberry Pi4) & Windows 10
Kivy: 2.3.0
Kivy installation method: pip
Describe the bug
"scroll_to" causes added widgets to jump between the top and bottom of a "GridLayout"
Expected behavior
The widget should be added to the top of the "GridLayout" and scroll to the new item
if it overflows the visible portion of the "GridLayout"
To Reproduce
Add widget to "GridLayout"
Add a second widget of the same type to the same "GridLayout"
Code and Logs and screenshots
listview=self.ids.layout_containerifpartstrnotinGlobals.partlist:
Globals.partlist.append(partstr)
listview.add_widget(PartWidget())
listview.children[0].part_label=partstrelse:
Globals.partlist.append("Duplicate part: {}".format(partstr))
listview.dup_label="Duplicate part: {}".format(partstr)
listview.add_widget(DuplicateWidget())
listview.children[0].dup_label="Duplicate part: {}".format(partstr)
listview.parent.scroll_to(listview.children[0], animate=True) # If this is not called lines stack from top to bottom Clock.schedule_once(self.manager.get_screen('scanlistscreen')._refocus_text_input, 1)
self.manager.get_screen('scanlistscreen').reset_form()
Additional context
-Unexpected behavior difference between Kivy 1.11 and Kivy 2.3.0.
-Tried running 'scroll_to' using Clock.schedule. Behavior still occurs
The text was updated successfully, but these errors were encountered:
Software Versions
Describe the bug
"scroll_to" causes added widgets to jump between the top and bottom of a "GridLayout"
Expected behavior
The widget should be added to the top of the "GridLayout" and scroll to the new item
if it overflows the visible portion of the "GridLayout"
To Reproduce
Add widget to "GridLayout"
Add a second widget of the same type to the same "GridLayout"
Code and Logs and screenshots
Expected Behavior from Kivy 1.11
Behavior with Kivy 2.3.0
Additional context
-Unexpected behavior difference between Kivy 1.11 and Kivy 2.3.0.
-Tried running 'scroll_to' using Clock.schedule. Behavior still occurs
The text was updated successfully, but these errors were encountered: