Commit 01c91cf2 authored by Dmitry.Vikulov's avatar Dmitry.Vikulov Committed by Alexander.Trofimov

Исправлен баг с зумом граф.объектов(оставалось предыдущее положение)

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@49508 954022d7-b5bf-4e40-9824-e11837661b57
parent e54e936d
......@@ -2338,7 +2338,7 @@ function DrawingObjects() {
var userId = null;
var documentId = null;
_this.zoom = 1;
_this.zoom = { last: 1, current: 1 };
_this.isViewerMode = null;
_this.objectLocker = null;
_this.drawingDocument = null;
......@@ -2936,11 +2936,10 @@ function DrawingObjects() {
_this.changeZoom = function(factor) {
_this.zoom = factor;
_this.resizeCanvas();
_this.zoom.last = _this.zoom.current;
_this.zoom.current = factor;
_this.showDrawingObjects(true);
_this.rebuildChartGraphicObjects();
_this.resizeCanvas();
}
_this.resizeCanvas = function() {
......
......@@ -1106,7 +1106,6 @@
this.buffers.main.changeZoom(factor);
this.buffers.overlay.changeZoom(factor);
this.drawingCtxCharts.changeZoom(factor);
var item;
......@@ -1117,9 +1116,9 @@
// Меняем zoom (для не активных сменим как только сделаем его активным)
item.changeZoom(/*isDraw*/i == activeIndex);
if (i == activeIndex) {
item.objectRender.changeZoom(this.drawingCtx.scaleFactor);
item.draw();
item.drawDepCells();
item.objectRender.changeZoom(this.drawingCtx.scaleFactor);
}
}
}
......
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