[TIMOB-473] expose height and width of views/controls that support auto height/width
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:53:09.000+0000 |
Affected Version/s | n/a |
Fix Version/s | 0.9.3 |
Components | iOS |
Labels | ios, iphone |
Reporter | Nolan Wright |
Assignee | Jeff Haynie |
Created | 2011-04-15T02:29:55.000+0000 |
Updated | 2011-04-17T01:53:09.000+0000 |
Description
Base UI => Views => Scroll Views => Scroll Views Dynamic Height
in this test, we have a scroll view with 3 sub views:
1) header view (fixed height)
2) body view (auto height)
3) footer view (fixed height)
in order to display things properly, we would need to set the top of the footer view based on the calculated height of the body view. to do this, we need to expose these properties (i.e., the actual height and width of a view/control that has specified 'auto' for one or both of these values.
i've added x, y, width, height and bounds on view.
i added a size property for all views. this returns a TiRect object which has the properties width, height, x and y.