[TIMOB-7005] API: UI - provide ability to apply padding to views
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Critical |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2012-01-05T18:19:13.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | TiAPI |
Labels | n/a |
Reporter | Sergej Kotliar |
Assignee | Neeraj Gupta |
Created | 2011-12-01T02:21:52.000+0000 |
Updated | 2017-03-21T22:54:15.000+0000 |
Description
Since you're trying to mimic the web environment, mimicking the CSS box model would be a good idea. One of the properties that's currently missing is padding.
Yes, a workaround is putting views inside views. But it's ridiculously clunky, and doesn't always do what you want anyways. It's one of the things that should just work.
Sergej Thanks for raising this request. To be clear, we are not "trying to mimic the web environment". Titanium aims to provide features that relate directly to their native mobile platform counterparts. As a rule of thumb, if the feature you need is not provided in a core native API, then it is very much less likely to be implemented in the core Titanium API. That said, you can certainly implement this yourself, by writing a module for each platform (see [Extending Titanium](https://wiki.appcelerator.org/display/guides/Extending+Titanium)). If you believe there is a great demand for it from the rest of the developer community, there can be great revenue opportunities if you sell it in [our marketplace](http://marketplace.appcelerator.com/). Cheers
While my above advice still stands, I have found a planning document that proposes a
margin
andpadding
property for views. Also, ticket TIMOB-6702 exists in the main project (an iOS equivalent will be raised when the work starts). Therefore, it seems like you may get your wish! Still, I did say, "less likely", didn't I? ;) CheersPaul, The thing about providing native features instead of "emulating the web environment" is that users don't really care as long as you do at least one of those. Right now you do neither. I know that you're working on a declarative UI-solution but while you work on it we still need to put products to market in order to get revenue. So please stop dismissing the failings of the platform by telling users to go fix it themselves, some of your users have paid quite large amounts of money for you to deliver a working platform. Cheers.
This request is a duplicate of TiMOB-6702. We will implement it for all platforms (Android, iOS and Mobile Web) when we implement it even if this ticket is Android specific.
Closing ticket as duplicate with reference to the above comments.