[TIMOB-18999] Windows: 'cm', 'in' and 'dp' values are not calculated correctly for layouts
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-06-12T13:24:47.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 4.1.0 |
Components | Windows |
Labels | n/a |
Reporter | Gary Mathews |
Assignee | Gary Mathews |
Created | 2015-06-11T18:54:29.000+0000 |
Updated | 2015-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();
PR: https://github.com/appcelerator/titanium_mobile_windows/pull/277
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