Commit 11e30f65 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

Bug 30075 - Не отрисовывается график диаграммы после изменения заголовка и клика по диаграмме

Bug 30079 - Сбрасывается select с заголовка диаграммы

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@64158 954022d7-b5bf-4e40-9824-e11837661b57
parent 4068f7ee
...@@ -631,7 +631,7 @@ DrawingObjectsController.prototype = ...@@ -631,7 +631,7 @@ DrawingObjectsController.prototype =
if(this.selection.textSelection !== object) if(this.selection.textSelection !== object)
{ {
this.resetSelection(true); this.resetSelection(true);
this.selectObject(object,pageIndex) this.selectObject(object,pageIndex);
this.selection.textSelection = object; this.selection.textSelection = object;
} }
} }
...@@ -4898,7 +4898,7 @@ DrawingObjectsController.prototype = ...@@ -4898,7 +4898,7 @@ DrawingObjectsController.prototype =
else else
{ {
nPageNum1 = 0; nPageNum1 = 0;
chart_selection.addToRecalculate(); chart_selection.recalculate();
} }
chart_selection.recalcInfo.bRecalculatedTitle = false; chart_selection.recalcInfo.bRecalculatedTitle = false;
} }
......
...@@ -323,12 +323,12 @@ function handleChart(drawing, drawingObjectsController, e, x, y, group, pageInde ...@@ -323,12 +323,12 @@ function handleChart(drawing, drawingObjectsController, e, x, y, group, pageInde
if(title !== oTargetTextObject) if(title !== oTargetTextObject)
{ {
drawingObjectsController.checkChartTextSelection(); drawingObjectsController.checkChartTextSelection();
selector.resetSelection();
selector.selectObject(drawing, pageIndex);
selector.selection.chartSelection = drawing;
drawing.selectTitle(title, pageIndex);
drawing.selection.textSelection = title;
} }
selector.resetSelection();
selector.selectObject(drawing, pageIndex);
selector.selection.chartSelection = drawing;
drawing.selectTitle(title, pageIndex);
drawing.selection.textSelection = title;
title.selectionSetStart(e, x, y, pageIndex); title.selectionSetStart(e, x, y, pageIndex);
drawingObjectsController.changeCurrentState(new TextAddState(drawingObjectsController, title)); drawingObjectsController.changeCurrentState(new TextAddState(drawingObjectsController, title));
if(e.ClickCount <= 1) if(e.ClickCount <= 1)
......
...@@ -4521,7 +4521,9 @@ function CDrawingDocument(drawingObjects) ...@@ -4521,7 +4521,9 @@ function CDrawingDocument(drawingObjects)
else else
{ {
this.GuiCanvasTextProps = document.createElement('canvas'); this.GuiCanvasTextProps = document.createElement('canvas');
this.GuiCanvasTextProps.style = "position:absolute;left:0;top:0;"; this.GuiCanvasTextProps.style.position = "absolute";
this.GuiCanvasTextProps.style.left = "0px";
this.GuiCanvasTextProps.style.top = "0px";
this.GuiCanvasTextProps.id = this.GuiCanvasTextPropsId; this.GuiCanvasTextProps.id = this.GuiCanvasTextPropsId;
var _width = parseInt(_div_elem.offsetWidth); var _width = parseInt(_div_elem.offsetWidth);
......
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