diff --git a/apps/documenteditor/main/app/controller/Navigation.js b/apps/documenteditor/main/app/controller/Navigation.js index 6eb7b8105..fb97d8707 100644 --- a/apps/documenteditor/main/app/controller/Navigation.js +++ b/apps/documenteditor/main/app/controller/Navigation.js @@ -163,8 +163,31 @@ define([ arr[0].set('name', this.txtBeginning); arr[0].set('tip', this.txtGotoBeginning); } - this.getApplication().getCollection('Navigation').reset(arr); - this.onChangeOutlinePosition(this._navigationObject.get_CurrentPosition()); + + var me = this; + var store = this.getApplication().getCollection('Navigation'); + store.reset(arr.splice(0, 50)); + + this._currentPos = this._navigationObject.get_CurrentPosition(); + + function addToPanel() { + if (arr.length<1) { + me.panelNavigation.viewNavigationList.scroller && me.panelNavigation.viewNavigationList.scroller.update({alwaysVisibleY: true}); + if (me._currentPos>-1 && me._currentPos-1 && me._currentPos