Commit 8766261b authored by Alexey.Musinov's avatar Alexey.Musinov Committed by Alexander.Trofimov

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@48504 954022d7-b5bf-4e40-9824-e11837661b57
parent 2f958d1d
......@@ -166,7 +166,7 @@
* Применяем только трансформации поворота в области
* @param {type} angle Угол поворота в градусах
*/
setRotatationAt: function (drawingCtx, angle, x, y) {
rotateAtPoint: function (drawingCtx, angle, x, y) {
var m = new asc.Matrix(); m.rotate(angle, 0);
var mbt = new asc.Matrix();
......
......@@ -2443,8 +2443,7 @@
}
}
this.stringRender.
setRotatationAt(drawingCtx, ct.angle, xb1, yb1);
this.stringRender.rotateAtPoint(drawingCtx, ct.angle, xb1, yb1);
this.stringRender
.restoreInternalState(ct.state)
......@@ -2513,8 +2512,7 @@
}
}
this.stringRender.
setRotatationAt(undefined, ct.angle, xb1, yb1);
this.stringRender.rotateAtPoint(undefined, ct.angle, xb1, yb1);
this.stringRender
.restoreInternalState(ct.state)
......@@ -3806,8 +3804,20 @@
}
}
//TODO:
//this.stringRender.setRotation(0);
// TODO:
if (c.getAngle() || 0) {
var rotateTextBound = this.stringRender.getTransformBound(c.getAngle(), 0, 0, this.cols[col].width, this.rows[row].height, tm.width, ha, va);
if (this.rows[row].height < rotateTextBound.sw) {
this.rows[row].height = Math.max(this.rows[row].height, rotateTextBound.sw);
if (!this.rows[row].isDefaultHeight) {
this.model.setRowHeight(this.rows[row].height + this.height_1px, row, row);
}
}
this.isChanged = true;
}
return col;
},
......
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