Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8110] MobileWeb: Create a new height/width constant of Ti.UI.INHERIT

GitHub Issuen/a
TypeNew Feature
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-03-20T15:56:57.000+0000
Affected Version/sRelease 2.0.0
Fix Version/sRelease 2.0.0, Sprint 2012-06
ComponentsMobileWeb
Labelsn/a
ReporterBryan Hughes
AssigneeChris Barber
Created2012-03-20T10:47:47.000+0000
Updated2017-03-03T23:54:34.000+0000

Description

There are a number of times where controls need to do either UI.SIZE or UI.FILL based on the parent's width/height. Right now this is accomplished manually, resulting in a lot of repeated code. We should implement a new constant of UI.INHERIT to avoid this code repetition. Ti.UI.INHERIT tells a control that it's width/height should be set to the parent's width/height, respectively. This operation is considered a raw copy of the user assigned value, not the calculated value. If the parent width/height is undefined, then the child inherits the parent's default width/height, which is always defined. If a parent's width/height or default width/height is also INHERIT, then the child goes up the element chain until it finds a width/height that is not INHERIT.

Attachments

FileDateSize
app.js2012-03-20T12:27:22.000+00002412

Comments

  1. Bryan Hughes 2012-03-20

    Pull Request: https://github.com/appcelerator/titanium_mobile/pull/1763
  2. Lee Morris 2017-03-03

    Closing ticket as MobileWeb is no longer supported.

JSON Source