Merge pull request #3387 from denys-duchier/dropdown-minimum-widths

take into account the minimum_widths of all items of a dropdown
This commit is contained in:
Ryan Pessa 2015-05-27 13:45:27 -05:00
commit 2cbf08ced7
1 changed files with 1 additions and 1 deletions

View File

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