Commit 473a8dfd authored by Ilya.Kirillov's avatar Ilya.Kirillov Committed by Alexander.Trofimov

Исправлен баг с позиционированием широких объектов (шире строки), в параграфах...

Исправлен баг с позиционированием широких объектов (шире строки), в параграфах с прилеганием по центру или правой стороне (баг 17692).

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@48120 954022d7-b5bf-4e40-9824-e11837661b57
parent 18f7bddb
...@@ -2726,8 +2726,8 @@ Paragraph.prototype = ...@@ -2726,8 +2726,8 @@ Paragraph.prototype =
switch (ParaPr.Jc) switch (ParaPr.Jc)
{ {
case align_Left : X = Range.X; break; case align_Left : X = Range.X; break;
case align_Right : X = Range.X + RangeWidth - Range.W; break; case align_Right : X = Math.max(Range.X + RangeWidth - Range.W, Range.X ); break;
case align_Center : X = Range.X + (RangeWidth - Range.W) / 2; break case align_Center : X = Math.max(Range.X + (RangeWidth - Range.W) / 2, Range.X); break
case align_Justify: case align_Justify:
{ {
X = Range.X; X = Range.X;
...@@ -2823,8 +2823,8 @@ Paragraph.prototype = ...@@ -2823,8 +2823,8 @@ Paragraph.prototype =
switch (ParaPr.Jc) switch (ParaPr.Jc)
{ {
case align_Left : X = Range.X; break; case align_Left : X = Range.X; break;
case align_Right : X = Range.X + RangeWidth - Range.W; break; case align_Right : X = Math.max(Range.X + RangeWidth - Range.W, Range.X); break;
case align_Center : X = Range.X + (RangeWidth - Range.W) / 2; break case align_Center : X = Math.max(Range.X + (RangeWidth - Range.W) / 2, Range.X); break
case align_Justify: case align_Justify:
{ {
X = Range.X; X = Range.X;
...@@ -2904,8 +2904,8 @@ Paragraph.prototype = ...@@ -2904,8 +2904,8 @@ Paragraph.prototype =
switch (ParaPr.Jc) switch (ParaPr.Jc)
{ {
case align_Left : X = Range.X; break; case align_Left : X = Range.X; break;
case align_Right : X = Range.X + RangeWidth - Range.W; break; case align_Right : X = Math.max(Range.X + RangeWidth - Range.W, Range.X); break;
case align_Center : X = Range.X + (RangeWidth - Range.W) / 2; break case align_Center : X = Math.max(Range.X + (RangeWidth - Range.W) / 2, Range.X); break
case align_Justify: case align_Justify:
{ {
X = Range.X; X = Range.X;
......
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