[AC-191] Two DisplayCaps options
| GitHub Issue | n/a |
|---|---|
| Type | Improvement |
| Priority | n/a |
| Status | Closed |
| Resolution | Invalid |
| Resolution Date | 2015-07-03T19:08:36.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Documentation |
| Labels | n/a |
| Reporter | nicolomonili |
| Assignee | Radamantis Torres-Lechuga |
| Created | 2015-07-02T11:56:07.000+0000 |
| Updated | 2015-07-03T19:08:36.000+0000 |
Description
Why there are two *DisplayCaps* options ?
* *DisplayCaps* doesn't work
* *displayCaps* works
Attachments
| File | Date | Size |
|---|---|---|
| Schermata 2015-07-02 alle 13.51.07.png | 2015-07-02T11:55:53.000+0000 | 14048 |
Hi , We have tested this issue . DisplayCaps and displayCaps both are working fine . Note that the displayCaps property begins with a lowercase letter, which differentiates it from the DisplayCaps object that it returns *Test Code*
*Log*Ti.API.info('Ti.Platform.displayCaps.density: ' + Ti.Platform.displayCaps.density); Ti.API.info('Ti.Platform.DisplayCaps.dpi: ' + Ti.Platform.displayCaps.dpi); Ti.API.info('Ti.Platform.displayCaps.platformHeight: ' + Ti.Platform.displayCaps.platformHeight); Ti.API.info('Ti.Platform.DisplayCaps.platformWidth: ' + Ti.Platform.displayCaps.platformWidth);Thanks