Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-473] expose height and width of views/controls that support auto height/width

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:53:09.000+0000
Affected Version/sn/a
Fix Version/s0.9.3
ComponentsiOS
Labelsios, iphone
ReporterNolan Wright
AssigneeJeff Haynie
Created2011-04-15T02:29:55.000+0000
Updated2011-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.

Comments

  1. Jeff Haynie 2011-04-15

    i've added x, y, width, height and bounds on view.

  2. Jeff Haynie 2011-04-15

    i added a size property for all views. this returns a TiRect object which has the properties width, height, x and y.

JSON Source