Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7005] API: UI - provide ability to apply padding to views

GitHub Issuen/a
TypeNew Feature
PriorityCritical
StatusClosed
ResolutionDuplicate
Resolution Date2012-01-05T18:19:13.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTiAPI
Labelsn/a
ReporterSergej Kotliar
AssigneeNeeraj Gupta
Created2011-12-01T02:21:52.000+0000
Updated2017-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.

Comments

  1. Paul Dowsett 2012-01-05

    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
  2. Paul Dowsett 2012-01-05

    While my above advice still stands, I have found a planning document that proposes a margin and padding 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? ;) Cheers
  3. Karl Åström 2012-01-05

    Paul, 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.
  4. Neeraj Gupta 2012-01-05

    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.
  5. Lee Morris 2017-03-21

    Closing ticket as duplicate with reference to the above comments.

JSON Source