From f8f156fd41fba54fbf80071fc2992aef09ac86e4 Mon Sep 17 00:00:00 2001 From: matham Date: Fri, 5 Aug 2016 14:18:43 -0400 Subject: [PATCH] Fix type and don't used children directly since it could be modified. --- kivy/uix/spinner.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kivy/uix/spinner.py b/kivy/uix/spinner.py index 1416b6b02..62a462aae 100644 --- a/kivy/uix/spinner.py +++ b/kivy/uix/spinner.py @@ -166,8 +166,9 @@ class Spinner(Button): container = dp.container if not container: return - for value in container.children: - item.height = self.height + h = self.height + for item in container.children[:]: + item.height = h def _update_dropdown(self, *largs): dp = self._dropdown