[TIMOB-909] display width/height are not always correct
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2011-04-17T01:54:38.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 1.4.0 |
| Components | iOS |
| Labels | n/a |
| Reporter | Nolan Wright |
| Assignee | Blain Hamon |
| Created | 2011-04-15T02:39:01.000+0000 |
| Updated | 2011-04-17T01:54:38.000+0000 |
Description
http://helpdesk.appcelerator.net/tickets/2091">http://helpdesk.appcelerator.net/tickets/2091
run Platform => Platform data.
if you lay the device down the height/width report values for landscape even though the phone is in portrait
Also, if your app starts in landscape, the values are incorrect. here't the code:
var appwin = Titanium.UI.createWindow();
appwin.orientationModes = [
var trackedItemLabel = Ti.UI.createLabel({
});
appwin.add(trackedItemLabel);
trackedItemLabel.addEventListener("click",function(e) {
});
appwin.open();
(from [a3daa3e6417c09713741ad82b048ec0d4cf6cf96]) Closes #909; Distinction between Device orientation and UI orientation made, adding Ti.Platform.displayCaps.isUIPortrait , which is now used by platformWidth and platformHeight. http://github.com/appcelerator/titanium_mobile/commit/a3daa3e6417c09713741ad82b048ec0d4cf6cf96"> http://github.com/appcelerator/titanium_mobile/commit/a3daa3e6417c0...