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:
Richard Davey 2021-11-01 18:44:10 +00:00
parent 1ec6e6198f
commit aea45bb06d

View file

@ -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')
{