Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4123] iOS: Label height set to auto should return "auto" for Android parity.

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2012-05-03T16:17:05.000+0000
Affected Version/sRelease 1.7.0
Fix Version/sRelease 2.1.0
ComponentsiOS
Labelscore, module_label, qe-testadded
ReporterEric Merriman
AssigneeNeeraj Gupta
Created2011-05-17T14:05:02.000+0000
Updated2013-11-07T05:29:12.000+0000

Description

Description: Setting label.height to 'auto' then reading the height value returns "2". This bug was originally in the Android component as TIMOB-3202 and was fixed (set to return 'auto'). For parity, iOS should follow suit. steps to reproduce: 1) Create sample app and replace app.js with: var win = Titanium.UI.createWindow({ backgroundColor:'white' }); win.open(); var label = Ti.UI.createLabel(); label.height = 'auto'; alert('Label height is: '+label.height); 2) launch the app Result: The alert reports "2" Expected: The alert reports "auto" (for android parity)

Attachments

FileDateSize
Screenshot 2011.05.17 13.55.15.png2011-05-17T14:05:02.000+0000138867

Comments

  1. Ben S. 2012-01-18

    Will this be fixed anytime soon?
  2. Neeraj Gupta 2012-01-18

    We plan to take care of this parity issue in the next release (1.9).
  3. Stephen Tramer 2012-05-03

    Fixed as a result of the composite layout. Tested 2.1.0.848d711.
  4. Eric Merriman 2012-06-14

    Verified fixed with SDK 2.1.0.v20120614124151 on iPhone 4 (5.0.1)
  5. Shameer Jan 2013-11-07

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

JSON Source