[TIMOB-1501] View.height and View.Width does not match View.Size
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-08-15T12:06:00.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 3.0.0 |
Components | Android |
Labels | android, dimensions, ios, ipad, iphone, module_views, qe-review, qe-testadded, size, view |
Reporter | jbrinkman |
Assignee | Neeraj Gupta |
Created | 2011-04-15T02:54:29.000+0000 |
Updated | 2013-11-07T05:46:10.000+0000 |
Description
If a view is created using top, bottom, left and right without explicitely setting the height and width, then the values for height and width do not equal the values shown in the size property.
see http://pastie.org/1081637">http://pastie.org/1081637 for an example
Not sure if this is related, but I've also noticed that changing the dimensions (height or width) of a view or label post-render doesn't seem to have an effect until after the view/label is either hidden/show or remove/add cycled.
Is this a known issue? Been trying to find it in both the premium support site and here.
I'm currently building on TiDev 1.2.1, TiSDK 1.4.1(e36b9d - 9/1/2010 nightly), iOS SDK 4.0.1, building as an iPad/iPhone universal target using the 'TARGETED_DEVICE_FAMILY=1,2' hack.
Could this be related to the issue behind ticket #775 which also exhibits the non-dynamic dimensions issue (zIndex changes are not respected at render time and require remove/add to refresh)?
Tested using a Samsung Galaxy S2 with TiSDK 2.2.0v20120814103312, works consistently with iOS. Issue is fixed, ticket closed.
The height,width value are consistent in Android and iOS Verified on: Titanium Studio: 2.1.3.201209071738 Titanium SDK: 2.2.0.v20120907162025 Android: Samsung Galaxy Note (v2.3.6), iOS simulator 5.1
Anvil testcase PR https://github.com/appcelerator/titanium_mobile/pull/4887