From 27ace9e1bd3447627187e8d268653bc052605314 Mon Sep 17 00:00:00 2001 From: Denys Duchier Date: Wed, 27 May 2015 13:52:19 +0200 Subject: [PATCH] take into account the minimum_widths of all items of a dropdown --- kivy/uix/actionbar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kivy/uix/actionbar.py b/kivy/uix/actionbar.py index 21eb7698c..c206b5272 100644 --- a/kivy/uix/actionbar.py +++ b/kivy/uix/actionbar.py @@ -307,7 +307,7 @@ class ActionGroup(ActionItem, Spinner): children = ddn.container.children if children: - ddn.width = max([self.width, children[0].minimum_width]) + ddn.width = max(self.width, max(c.minimum_width for c in children)) else: ddn.width = self.width