Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1747] iOS - displayCaps returns unexpected value on everything but iphone 4

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:57:03.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0 M04
ComponentsiOS
Labelsdisplaycaps, ios
ReporterThomas Huelbert
AssigneeBlain Hamon
Created2011-04-15T03:01:13.000+0000
Updated2011-04-17T01:57:03.000+0000

Description

on a 3g/3gs/ipod touch (4g or older) = "low"
iPad = "high"
iPhone4 = "high"

expected:iPad and 3g/3gs/ipod touch should be "medium", retina displays to return "high"

script snippet for repro:

var win = Titanium.UI.currentWindow;
Titanium.UI.setBackgroundColor('#FFF');

var label = Ti.UI.createLabel({

width:"auto",
height:"auto",
top:10,
left:10,
right:10,
text : 'value goes here',

});

label.text = Titanium.Platform.displayCaps.density;

win.add(label);

Comments

  1. Thomas Huelbert 2011-04-15

    as per a brief talk with Stephen, popping this up to high.

  2. Blain Hamon 2011-04-15

    https://github.com/appcelerator/titanium_mobile/commit/9dc1f12609b595dff0c5dcabf140132b10c826f7"> https://github.com/appcelerator/titanium_mobile/commit/9dc1f12609b5...

    [#1747 state:fixed-in-qa] Changing a string and conditional around and voila.

  3. Thomas Huelbert 2011-04-15

    ipad 3g, ipod touch 4g both 4.2.1

JSON Source