mirror of
https://github.com/photonstorm/phaser
synced 2024-11-15 01:17:43 +00:00
Text
with RTL enabled wouldn't factor in the left / right padding correctly, causing the text to be cut off. It will now account for padding in the line width calculations. Fix #5830
This commit is contained in:
parent
1ec6e6198f
commit
aea45bb06d
1 changed files with 1 additions and 1 deletions
|
@ -1216,7 +1216,7 @@ var Text = new Class({
|
|||
|
||||
if (style.rtl)
|
||||
{
|
||||
linePositionX = w - linePositionX;
|
||||
linePositionX = w - linePositionX - padding.left - padding.right;
|
||||
}
|
||||
else if (style.align === 'right')
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue