mirror of https://github.com/kivy/kivy.git
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:
commit
2cbf08ced7
|
@ -307,7 +307,7 @@ class ActionGroup(ActionItem, Spinner):
|
||||||
children = ddn.container.children
|
children = ddn.container.children
|
||||||
|
|
||||||
if 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:
|
else:
|
||||||
ddn.width = self.width
|
ddn.width = self.width
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue