Commit 4e95d91d authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Поправил баг http://bugzserver/show_bug.cgi?id=17476 (курсор нельзя установить...

Поправил баг http://bugzserver/show_bug.cgi?id=17476 (курсор нельзя установить в строку формул для FF и IE)

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@58428 954022d7-b5bf-4e40-9824-e11837661b57
parent 4096e802
......@@ -235,6 +235,8 @@
* saveValueCallback
*/
CellEditor.prototype.open = function (options) {
var b = this.input.selectionStart;
this.isOpened = true;
if (window.addEventListener) {
window.addEventListener("keydown" , this.fKeyDown , false);
......@@ -248,8 +250,14 @@
this._updateFormulaEditMod(/*bIsOpen*/true);
this._draw();
if (!(options.cursorPos >= 0)) {
if (options.isClearCell)
if (this.isTopLineActive) {
if (typeof b !== "undefined") {
if (this.cursorPos !== b) {this._moveCursor(kPosition, b);}
} else
this._moveCursor(kEndOfText);
} else if (options.isClearCell)
this._selectChars(kEndOfText);
else
this._moveCursor(kEndOfText);
......@@ -623,7 +631,6 @@
// Private
CellEditor.prototype._setOptions = function (options) {
var t = this;
var opt = this.options = options;
var ctx = this.drawingCtx;
var u = ctx.getUnits();
......
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