Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18999] Windows: 'cm', 'in' and 'dp' values are not calculated correctly for layouts

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2015-06-12T13:24:47.000+0000
Affected Version/sn/a
Fix Version/sRelease 4.1.0
ComponentsWindows
Labelsn/a
ReporterGary Mathews
AssigneeGary Mathews
Created2015-06-11T18:54:29.000+0000
Updated2015-07-03T00:46:06.000+0000

Description

*Description* 'cm', 'in' and 'dp' values are not calculated correctly. This is because the PPI is not set. *Example*
var win = Titanium.UI.createWindow({
    backgroundColor: '#fff'
});

var view = Titanium.UI.createView({
    backgroundColor: 'red',
    width: '1in',
    height: '10dp'
});
win.add(view);

win.open();

Comments

  1. Gary Mathews 2015-06-11

    PR: https://github.com/appcelerator/titanium_mobile_windows/pull/277
  2. Lokesh Choudhary 2015-07-03

    Verified the fix. Closing. Environment: Appc Studio: 4.1.0.201507010234 Ti SDK: 4.1.0.v20150702140313 Ti CLI: 4.0.1 Alloy: 1.6.2 Windows: 8.1 Enterprise 64-bit APPC NPM: 4.1.0-1 APPC CLI: 4.1.0-5 Device: Nokia Lumia 928 - Windows Phone 8.1 Windows emulator : 8.1

JSON Source