mirror of https://github.com/kivy/kivy.git
Merge pull request #821 from kivy/issue_819
UIX: Widget fix canvas positioning when inserting at first position ref:
This commit is contained in:
commit
824d192066
|
@ -280,7 +280,7 @@ class Widget(EventDispatcher):
|
|||
children = self.children
|
||||
if index >= len(children):
|
||||
index = len(children)
|
||||
next_index = 0
|
||||
next_index = -1
|
||||
else:
|
||||
next_child = children[index]
|
||||
next_index = canvas.indexof(next_child.canvas)
|
||||
|
|
Loading…
Reference in New Issue