Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26192] Label shadow offsets differently on platforms

GitHub Issuen/a
TypeBug
PriorityNone
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterJosh Longton
AssigneeUnknown
Created2018-07-10T19:04:44.000+0000
Updated2018-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

FileDateSize
Screen Shot 2018-07-10 at 5.37.37 PM.png2018-07-10T19:04:40.000+0000419261

Comments

No comments

JSON Source