Commit 931a0178 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Реализовал смену размера шрифта (inc/dec) при вводе в ячейку

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@48139 954022d7-b5bf-4e40-9824-e11837661b57
parent cb331343
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
var asc_TR = asc.CellTextRender; var asc_TR = asc.CellTextRender;
var asc_FP = asc.FontProperties; var asc_FP = asc.FontProperties;
var asc_parsecolor = asc.parseColor; var asc_parsecolor = asc.parseColor;
var asc_incDecFonSize = asc.incDecFonSize;
/** @const */ /** @const */
...@@ -1575,6 +1576,11 @@ ...@@ -1575,6 +1576,11 @@
formatAdditional.tint = val.tint; formatAdditional.tint = val.tint;
} }
break; break;
case "changeFontSize":
var newFontSize = asc_incDecFonSize(val, format.fs);
if (null !== newFontSize)
format.fs = newFontSize;
break;
} }
return val; return val;
}, },
......
...@@ -1316,7 +1316,7 @@ ...@@ -1316,7 +1316,7 @@
if (!this.controller.isCellEditMode) { if (!this.controller.isCellEditMode) {
this.getWorksheet().setSelectionInfo(prop, val); this.getWorksheet().setSelectionInfo(prop, val);
} else { } else {
//ToDo this.cellEditor.setTextStyle(prop, val); this.cellEditor.setTextStyle(prop, val);
} }
}, },
......
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