Skip to content

Commit

Permalink
Example 75: Set the mode based on the width property.
Browse files Browse the repository at this point in the history
Kivy's dynamic property binding means that the mode will always be set as soon as a resize event occurs.
  • Loading branch information
Dusty Phillips committed Aug 17, 2013
1 parent a22c40b commit d3f7c77
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions orkiv/orkiv.kv
Expand Up @@ -4,6 +4,7 @@
OrkivRoot:

<OrkivRoot>:
mode: "narrow" if self.width < 600 else "wide"
AccountDetailsForm:

<AccountDetailsForm>:
Expand Down

0 comments on commit d3f7c77

Please sign in to comment.