ex-makina / marklight-issues

Public bug and issue tracker for MarkLight
1 stars 0 forks source link

Padding field #66

Open patrik-u opened 8 years ago

patrik-u commented 8 years ago

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.