Fix type and don't used children directly since it could be modified.

This commit is contained in:
matham 2016-08-05 14:18:43 -04:00 committed by GitHub
parent 87e6847008
commit f8f156fd41
1 changed files with 3 additions and 2 deletions

View File

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