Commit 1a499c63 authored by Ilya.Kirillov's avatar Ilya.Kirillov Committed by Alexander.Trofimov

Исправлен баг с работой кнопок Increase/Decrease indent (баг 21318).

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@50796 954022d7-b5bf-4e40-9824-e11837661b57
parent c17e29c7
......@@ -6102,14 +6102,18 @@ Paragraph.prototype =
if ( LeftMargin >= 0 )
{
LeftMargin = 12.5 * parseInt(10 * LeftMargin / 125);
LeftMargin_new = ( (LeftMargin - (10 * LeftMargin) % 125) / 12.5 + 1) * 12.5;
LeftMargin_new = ( (LeftMargin - (10 * LeftMargin) % 125 / 10) / 12.5 + 1) * 12.5;
}
if ( LeftMargin_new < 0 )
LeftMargin_new = 12.5;
}
else
LeftMargin_new = Math.max( ( (LeftMargin - (10 * LeftMargin) % 125) / 12.5 - 1) * 12.5, 0 );
{
var TempValue = (125 - (10 * LeftMargin) % 125);
TempValue = ( 125 === TempValue ? 0 : TempValue );
LeftMargin_new = Math.max( ( (LeftMargin + TempValue / 10) / 12.5 - 1 ) * 12.5, 0 );
}
this.Set_Ind( { Left : LeftMargin_new }, false );
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment