[SSE] For Bug 56309

This commit is contained in:
Julia Radzhabova 2022-12-12 20:25:24 +03:00
parent 191805b342
commit f40c62ede1
3 changed files with 8 additions and 3 deletions

View file

@ -696,7 +696,7 @@ define([
win.setSettings({
sheets : items,
ranges : me.api.asc_getDefinedNames(Asc.c_oAscGetDefinedNamesList.All, true),
currentSheet: me.api.asc_getWorksheetName(me.api.asc_getActiveWorksheetIndex()),
currentSheet: me.api.asc_getActiveWorksheetIndex(),
props : props,
text : cell.asc_getText(),
isLock : cell.asc_getLockText(),

View file

@ -1047,7 +1047,7 @@ define([
win.setSettings({
sheets : items,
ranges : me.api.asc_getDefinedNames(Asc.c_oAscGetDefinedNamesList.All, true),
currentSheet: me.api.asc_getWorksheetName(me.api.asc_getActiveWorksheetIndex()),
currentSheet: me.api.asc_getActiveWorksheetIndex(),
props : props,
text : cell.asc_getText(),
isLock : cell.asc_getLockText(),

View file

@ -445,7 +445,7 @@ define([
}
}
store.reset(arr);
var sheet = props ? (props.asc_getSheet() || props.asc_getLocation()) : this.settings.currentSheet,
var sheet = props ? (props.asc_getSheet() || props.asc_getLocation()) : this.api.asc_getWorksheetName(this.settings.currentSheet),
rec = store.findWhere({name: sheet });
if (rec) {
this.internalList.expandRecord(rec.get('type') ? definedNames : store.at(0));
@ -545,8 +545,13 @@ define([
_.delay(function(){
me.inputRange.focus();
},1);
_.delay(function(){
me.api.asc_showWorksheet(me.settings.currentSheet);
},1);
});
me.api.asc_showWorksheet(me.internalList.getSelectedRec().get('index')-1);
var xy = me.$window.offset();
me.hide();
win.show(xy.left + 160, xy.top + 125);