Commit 439673f9 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Для number не учитываем wrap

Баг http://bugzserver/show_bug.cgi?id=21595

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@52007 954022d7-b5bf-4e40-9824-e11837661b57
parent 53c6ba53
......@@ -699,7 +699,7 @@
_measureChars: function (maxWidth) {
var self = this;
var ctx = this.drawingCtx;
var wrap = this.flags && this.flags.wrapText;
var wrap = this.flags && this.flags.wrapText && !this.flags.isNumberFormat;
var wrapNL = this.flags && this.flags.wrapOnlyNL;
var hasRepeats = false;
var i, j, fr, fmt, text, p, p_ = {}, pIndex, va, f, f_, eq, startCh;
......
......@@ -3631,12 +3631,12 @@
var dDigitsCount = 0;
var colWidth = 0;
var cellType = c.getType();
var isNumberFormat = (!cellType || CellValueType.Number === cellType);
fl.isNumberFormat = (!cellType || CellValueType.Number === cellType);
var numFormatStr = c.getNumFormatStr();
var pad = this.width_padding * 2 + this.width_1px;
var sstr, sfl, stm;
if (!this.cols[col].isCustomWidth && isNumberFormat && !fMergedColumns &&
if (!this.cols[col].isCustomWidth && fl.isNumberFormat && !fMergedColumns &&
(c_oAscCanChangeColWidth.numbers === canChangeColWidth ||
c_oAscCanChangeColWidth.all === canChangeColWidth)) {
colWidth = this.cols[col].innerWidth;
......@@ -3723,7 +3723,7 @@
// NOTE: надо сделать как в экселе если проекция строчки на Y больше высоты ячейки подставлять # и рисовать все по центру
// if (isNumberFormat) {
// if (fl.isNumberFormat) {
// var prj = Math.abs(Math.sin(angle * Math.PI / 180.0) * tm.width);
// if (prj > rowHeight) {
// //if (maxW === undefined) {}
......
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