Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1501] View.height and View.Width does not match View.Size

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2012-08-15T12:06:00.000+0000
Affected Version/sn/a
Fix Version/sRelease 3.0.0
ComponentsAndroid
Labelsandroid, dimensions, ios, ipad, iphone, module_views, qe-review, qe-testadded, size, view
Reporterjbrinkman
AssigneeNeeraj Gupta
Created2011-04-15T02:54:29.000+0000
Updated2013-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

Comments

  1. Jean-Etienne LaVallee 2011-04-15

    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)?

  2. Junaid Younus 2012-08-15

    Tested using a Samsung Galaxy S2 with TiSDK 2.2.0v20120814103312, works consistently with iOS. Issue is fixed, ticket closed.
  3. Satyam Sekhri 2012-09-10

    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
  4. Shameer Jan 2013-11-07

    Anvil testcase PR https://github.com/appcelerator/titanium_mobile/pull/4887

JSON Source