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

Padding field #66

Open
patrik-u opened this issue Sep 11, 2016 · 0 comments
Open

Padding field #66

patrik-u opened this issue Sep 11, 2016 · 0 comments
Labels

Comments

@patrik-u
Copy link

patrik-u commented Sep 11, 2016

There isn't a Padding field on UIViews today. In order to pad content you need to wrap them in a Region and set its Margin to the Padding you want. There might be a way to solve this without using a Region, perhaps by looking at parent Padding when doing layout calculations.

Another argument for allowing a Padding field is that we can then include it in our style definitions, to e.g. apply X amount of Padding on certain Panels, Regions, etc. We get around this somewhat by using a field called ContentMargin on certain views, that applies margin to child views. If we create a Padding field it can replace the ContentMargin on some of these views.

@patrik-u patrik-u added the task label Sep 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant