From 962278818b94d5ce792176ffbc8e6c433512e62e Mon Sep 17 00:00:00 2001 From: qua-non Date: Thu, 26 Dec 2013 23:15:00 +0530 Subject: [PATCH] uix:ActionBar fix comparison ref: #1729 --- kivy/uix/actionbar.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kivy/uix/actionbar.py b/kivy/uix/actionbar.py index d67d03b66..09ef4cc12 100644 --- a/kivy/uix/actionbar.py +++ b/kivy/uix/actionbar.py @@ -37,10 +37,11 @@ from kivy.uix.widget import Widget from kivy.uix.button import Button from kivy.uix.togglebutton import ToggleButton from kivy.uix.checkbox import CheckBox +from kivy.uix.spinner import Spinner from kivy.config import Config from kivy.properties import ObjectProperty, NumericProperty, \ BooleanProperty, StringProperty, ListProperty, OptionProperty -from kivy.uix.spinner import Spinner +from kivy.metrics import sp from kivy.lang import Builder from functools import partial @@ -292,7 +293,7 @@ class ActionGroup(ActionItem, Spinner): children[0].minimum_width]) for item in children: item.size_hint_y = None - item.height = max([self.height, '48sp']) + item.height = max([self.height, sp(48)]) def clear_widgets(self): self._dropdown.clear_widgets()