Skip to content

Instantly share code, notes, and snippets.

@abhijangda
Created September 13, 2013 08:00
Show Gist options
  • Select an option

  • Save abhijangda/6547896 to your computer and use it in GitHub Desktop.

Select an option

Save abhijangda/6547896 to your computer and use it in GitHub Desktop.
def _toggle_dropdown(self, *largs):
self.is_open = not self.is_open
self._dropdown.size_hint_x = None
self._dropdown.width = max([self.width,
self.list_action_item[0].minimum_width])
for item in self.list_action_item:
item.size_hint_y = None
item.height = max([self.height, '48sp'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment