Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add width/height methods taking percentage parameter #28

Merged
merged 1 commit into from
Oct 18, 2017

Conversation

lucdion
Copy link
Member

@lucdion lucdion commented Oct 17, 2017

Add width/height methods taking percentage parameter

  • width(_ percent: FPercent)
  • height(_ percent: FPercent)
  • minWidth(_ percent: FPercent)
  • maxWidth(_ percent: FPercent)
  • minHeight(_ percent: FPercent)
  • maxHeight(_ percent: FPercent)

Usage examples:

  • view.flex.width(50%)
  • view.flex.height(25%)

@lucdion lucdion merged commit 4c66764 into master Oct 18, 2017
@lucdion lucdion deleted the add_percentages branch October 18, 2017 01:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant