Merge pull request #821 from kivy/issue_819

UIX: Widget fix canvas positioning when inserting at first position ref:
This commit is contained in:
Mathieu Virbel 2012-11-28 15:27:36 -08:00
commit 824d192066
1 changed files with 1 additions and 1 deletions

View File

@ -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)