[TIMOB-8110] MobileWeb: Create a new height/width constant of Ti.UI.INHERIT
GitHub Issue | n/a |
Type | New Feature |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-03-20T15:56:57.000+0000 |
Affected Version/s | Release 2.0.0 |
Fix Version/s | Release 2.0.0, Sprint 2012-06 |
Components | MobileWeb |
Labels | n/a |
Reporter | Bryan Hughes |
Assignee | Chris Barber |
Created | 2012-03-20T10:47:47.000+0000 |
Updated | 2017-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
File | Date | Size |
app.js | 2012-03-20T12:27:22.000+0000 | 2412 |
Pull Request: https://github.com/appcelerator/titanium_mobile/pull/1763
Closing ticket as MobileWeb is no longer supported.