Commit 7626843a 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@48505 954022d7-b5bf-4e40-9824-e11837661b57
parent 8766261b
...@@ -3804,10 +3804,12 @@ ...@@ -3804,10 +3804,12 @@
} }
} }
// TODO: // TODO: отступы
if (c.getAngle() || 0) { 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); var rotateTextBound = this.stringRender.getTransformBound(c.getAngle(), 0, 0, this.cols[col].width, this.rows[row].height, tm.width, ha, va);
if (rotateTextBound) {
if (this.rows[row].height < rotateTextBound.sw) { if (this.rows[row].height < rotateTextBound.sw) {
this.rows[row].height = Math.max(this.rows[row].height, rotateTextBound.sw); this.rows[row].height = Math.max(this.rows[row].height, rotateTextBound.sw);
...@@ -3817,6 +3819,7 @@ ...@@ -3817,6 +3819,7 @@
} }
this.isChanged = true; this.isChanged = true;
}
} }
return col; 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