[TIMOB-26192] Label shadow offsets differently on platforms
GitHub Issue | n/a |
Type | Bug |
Priority | None |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Josh Longton |
Assignee | Unknown |
Created | 2018-07-10T19:04:44.000+0000 |
Updated | 2018-07-12T21:12:39.000+0000 |
Description
Label shadow offsets differently on platforms, I guess both platforms calculate the shadow offset differently.
*Test Case*
{noformat}
var win = Ti.UI.createWindow({
backgroundColor: 'white',
exitOnClose: true,
fullscreen: false,
layout: 'vertical',
title: 'Label Demo'
});
var label1 = Ti.UI.createLabel({
color: '#900',
font: { fontSize:48 },
shadowColor: '#aaa',
shadowOffset: {x:50, y:50},
shadowRadius: 3,
text: 'A simple label',
textAlign: Ti.UI.TEXT_ALIGNMENT_CENTER,
top: 30,
width: Ti.UI.SIZE, height: Ti.UI.SIZE
});
var label2 = Ti.UI.createLabel({
color:'blue',
text: 'A long label with\na few line breaks\nand unicode (UTF8)\nsymbols such as\na white chess piece \u2655\nand the euro symbol \u20ac\nlooks like this!\n',
textAlign: Ti.UI.TEXT_ALIGNMENT_LEFT,
top: 30,
width: 300, height: 200
});
win.add(label1);
win.add(label2);
win.open();
{noformat}
*Expected*
Both platforms should have the same shadow offset.
*Actual*
!Screen Shot 2018-07-10 at 5.37.37 PM.png|thumbnail!
Attachments
No comments