Titanium JIRA Archive
Appcelerator Community (AC)

[AC-191] Two DisplayCaps options

GitHub Issuen/a
TypeImprovement
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2015-07-03T19:08:36.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsDocumentation
Labelsn/a
Reporternicolomonili
AssigneeRadamantis Torres-Lechuga
Created2015-07-02T11:56:07.000+0000
Updated2015-07-03T19:08:36.000+0000

Description

Why there are two *DisplayCaps* options ? * *DisplayCaps* doesn't work * *displayCaps* works

Attachments

FileDateSize
Schermata 2015-07-02 alle 13.51.07.png2015-07-02T11:55:53.000+000014048

Comments

  1. Harish Mridha 2015-07-03

    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*
       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);
       
    *Log*
       [INFO] :   Ti.Platform.displayCaps.density: xxhigh
       [INFO] :   Ti.Platform.DisplayCaps.dpi: 480
       [INFO] :   Ti.Platform.displayCaps.platformHeight: 1776
       [INFO] :   Ti.Platform.DisplayCaps.platformWidth: 1080
       [INFO] :   Ti.Platform.displayCaps.logicalDensityFactor: 3
       
    Thanks

JSON Source