Commit 73bfcc1b authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

Bug 25216 - Смена позиции автофигуры в документе

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@57606 954022d7-b5bf-4e40-9824-e11837661b57
parent a8c3b00b
...@@ -304,15 +304,15 @@ CGroupShape.prototype.recalculateBounds = function() ...@@ -304,15 +304,15 @@ CGroupShape.prototype.recalculateBounds = function()
for(var i = 0; i < sp_tree.length; ++i) for(var i = 0; i < sp_tree.length; ++i)
{ {
sp_tree[i].recalculate(); sp_tree[i].recalculate();
var bounds = sp_tree[i].bounds; //var bounds = sp_tree[i].bounds;
var l = bounds.l; //var l = bounds.l;
var r = bounds.r; //var r = bounds.r;
var t = bounds.t; //var t = bounds.t;
var b = bounds.b; //var b = bounds.b;
x_arr_max.push(r); //x_arr_max.push(r);
x_arr_min.push(l); //x_arr_min.push(l);
y_arr_max.push(b); //y_arr_max.push(b);
y_arr_min.push(t); //y_arr_min.push(t);
} }
......
...@@ -293,6 +293,7 @@ CGraphicObjects.prototype = ...@@ -293,6 +293,7 @@ CGraphicObjects.prototype =
addToZIndexManagerAfterOpen: function() addToZIndexManagerAfterOpen: function()
{ {
this.drawingObjects.sort(ComparisonByZIndexSimple); this.drawingObjects.sort(ComparisonByZIndexSimple);
this.drawingObjects.reverse();
this.zIndexManager.bTurnOff = false; this.zIndexManager.bTurnOff = false;
for(var i = 0; i < this.drawingObjects.length; ++i) for(var i = 0; i < this.drawingObjects.length; ++i)
{ {
......
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