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,19 +3804,22 @@
}
}
// TODO:
// 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 (rotateTextBound) {
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);
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;
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