[TIMOB-1747] iOS - displayCaps returns unexpected value on everything but iphone 4
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:57:03.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.5.0 M04 |
Components | iOS |
Labels | displaycaps, ios |
Reporter | Thomas Huelbert |
Assignee | Blain Hamon |
Created | 2011-04-15T03:01:13.000+0000 |
Updated | 2011-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);
as per a brief talk with Stephen, popping this up to high.
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.
ipad 3g, ipod touch 4g both 4.2.1