diff --git a/apps/documenteditor/main/app/view/FileMenuPanels.js b/apps/documenteditor/main/app/view/FileMenuPanels.js index a5cf8919c..6c952ac80 100644 --- a/apps/documenteditor/main/app/view/FileMenuPanels.js +++ b/apps/documenteditor/main/app/view/FileMenuPanels.js @@ -93,13 +93,19 @@ define([ if (_.isUndefined(this.scroller)) { this.scroller = new Common.UI.Scroller({ el: this.$el, - suppressScrollX: true + suppressScrollX: true, + alwaysVisibleY: true }); } return this; }, + show: function() { + Common.UI.BaseView.prototype.show.call(this,arguments); + this.scroller && this.scroller.update(); + }, + onFormatClick: function(e) { var type = e.currentTarget.attributes['format']; if (!_.isUndefined(type) && this.menu) { @@ -154,13 +160,19 @@ define([ if (_.isUndefined(this.scroller)) { this.scroller = new Common.UI.Scroller({ el: this.$el, - suppressScrollX: true + suppressScrollX: true, + alwaysVisibleY: true }); } return this; }, + show: function() { + Common.UI.BaseView.prototype.show.call(this,arguments); + this.scroller && this.scroller.update(); + }, + onFormatClick: function(e) { var type = e.currentTarget.attributes['format'], ext = e.currentTarget.attributes['format-ext']; @@ -429,7 +441,8 @@ define([ if (_.isUndefined(this.scroller)) { this.scroller = new Common.UI.Scroller({ el: this.$el, - suppressScrollX: true + suppressScrollX: true, + alwaysVisibleY: true }); } return this; @@ -439,6 +452,7 @@ define([ Common.UI.BaseView.prototype.show.call(this,arguments); this.updateSettings(); + this.scroller && this.scroller.update(); }, setMode: function(mode) { @@ -670,13 +684,19 @@ define([ if (_.isUndefined(this.scroller)) { this.scroller = new Common.UI.Scroller({ el: this.$el, - suppressScrollX: true + suppressScrollX: true, + alwaysVisibleY: true }); } return this; }, + show: function() { + Common.UI.BaseView.prototype.show.call(this,arguments); + this.scroller && this.scroller.update(); + }, + onRecentFileClick: function(view, itemview, record){ if ( this.menu ) this.menu.fireEvent('recent:open', [this.menu, record.get('url')]); @@ -739,13 +759,19 @@ define([ if (_.isUndefined(this.scroller)) { this.scroller = new Common.UI.Scroller({ el: this.$el, - suppressScrollX: true + suppressScrollX: true, + alwaysVisibleY: true }); } return this; }, + show: function() { + Common.UI.BaseView.prototype.show.call(this,arguments); + this.scroller && this.scroller.update(); + }, + _onBlankDocument: function() { if ( this.menu ) this.menu.fireEvent('create:new', [this.menu, 'blank']); @@ -978,7 +1004,8 @@ define([ if (_.isUndefined(this.scroller)) { this.scroller = new Common.UI.Scroller({ el: this.$el, - suppressScrollX: true + suppressScrollX: true, + alwaysVisibleY: true }); } return this; @@ -989,6 +1016,7 @@ define([ this.updateStatisticInfo(); this.updateFileInfo(); + this.scroller && this.scroller.update(); }, hide: function() { @@ -1292,7 +1320,8 @@ define([ if (_.isUndefined(this.scroller)) { this.scroller = new Common.UI.Scroller({ el: this.$el, - suppressScrollX: true + suppressScrollX: true, + alwaysVisibleY: true }); } return this; @@ -1300,6 +1329,7 @@ define([ show: function() { Common.UI.BaseView.prototype.show.call(this,arguments); + this.scroller && this.scroller.update(); }, hide: function() { @@ -1610,7 +1640,8 @@ define([ if (_.isUndefined(this.scroller)) { this.scroller = new Common.UI.Scroller({ el: this.$el, - suppressScrollX: true + suppressScrollX: true, + alwaysVisibleY: true }); } @@ -1624,6 +1655,7 @@ define([ Common.UI.BaseView.prototype.show.call(this,arguments); this.updateSignatures(); this.updateEncrypt(); + this.scroller && this.scroller.update(); }, setMode: function(mode) { diff --git a/apps/presentationeditor/main/app/view/FileMenuPanels.js b/apps/presentationeditor/main/app/view/FileMenuPanels.js index a586b7f69..e3fbbb4e6 100644 --- a/apps/presentationeditor/main/app/view/FileMenuPanels.js +++ b/apps/presentationeditor/main/app/view/FileMenuPanels.js @@ -90,13 +90,19 @@ define([ if (_.isUndefined(this.scroller)) { this.scroller = new Common.UI.Scroller({ el: this.$el, - suppressScrollX: true + suppressScrollX: true, + alwaysVisibleY: true }); } return this; }, + show: function() { + Common.UI.BaseView.prototype.show.call(this,arguments); + this.scroller && this.scroller.update(); + }, + onFormatClick: function(e) { var type = e.currentTarget.attributes['format']; if (!_.isUndefined(type) && this.menu) { @@ -146,13 +152,19 @@ define([ if (_.isUndefined(this.scroller)) { this.scroller = new Common.UI.Scroller({ el: this.$el, - suppressScrollX: true + suppressScrollX: true, + alwaysVisibleY: true }); } return this; }, + show: function() { + Common.UI.BaseView.prototype.show.call(this,arguments); + this.scroller && this.scroller.update(); + }, + onFormatClick: function(e) { var type = e.currentTarget.attributes['format'], ext = e.currentTarget.attributes['format-ext']; @@ -372,7 +384,8 @@ define([ if (_.isUndefined(this.scroller)) { this.scroller = new Common.UI.Scroller({ el: this.$el, - suppressScrollX: true + suppressScrollX: true, + alwaysVisibleY: true }); } @@ -383,6 +396,7 @@ define([ Common.UI.BaseView.prototype.show.call(this,arguments); this.updateSettings(); + this.scroller && this.scroller.update(); }, setMode: function(mode) { @@ -577,13 +591,19 @@ define([ if (_.isUndefined(this.scroller)) { this.scroller = new Common.UI.Scroller({ el: this.$el, - suppressScrollX: true + suppressScrollX: true, + alwaysVisibleY: true }); } return this; }, + show: function() { + Common.UI.BaseView.prototype.show.call(this,arguments); + this.scroller && this.scroller.update(); + }, + onRecentFileClick: function(view, itemview, record){ if ( this.menu ) this.menu.fireEvent('recent:open', [this.menu, record.get('url')]); @@ -646,13 +666,19 @@ define([ if (_.isUndefined(this.scroller)) { this.scroller = new Common.UI.Scroller({ el: this.$el, - suppressScrollX: true + suppressScrollX: true, + alwaysVisibleY: true }); } return this; }, + show: function() { + Common.UI.BaseView.prototype.show.call(this,arguments); + this.scroller && this.scroller.update(); + }, + _onBlankDocument: function() { if ( this.menu ) this.menu.fireEvent('create:new', [this.menu, 'blank']); @@ -853,7 +879,8 @@ define([ if (_.isUndefined(this.scroller)) { this.scroller = new Common.UI.Scroller({ el: this.$el, - suppressScrollX: true + suppressScrollX: true, + alwaysVisibleY: true }); } @@ -864,6 +891,7 @@ define([ Common.UI.BaseView.prototype.show.call(this,arguments); this.updateFileInfo(); + this.scroller && this.scroller.update(); }, hide: function() { @@ -1096,7 +1124,8 @@ define([ if (_.isUndefined(this.scroller)) { this.scroller = new Common.UI.Scroller({ el: this.$el, - suppressScrollX: true + suppressScrollX: true, + alwaysVisibleY: true }); } @@ -1108,6 +1137,7 @@ define([ show: function() { Common.UI.BaseView.prototype.show.call(this,arguments); + this.scroller && this.scroller.update(); }, hide: function() { @@ -1385,7 +1415,8 @@ define([ if (_.isUndefined(this.scroller)) { this.scroller = new Common.UI.Scroller({ el: this.$el, - suppressScrollX: true + suppressScrollX: true, + alwaysVisibleY: true }); } @@ -1399,6 +1430,7 @@ define([ Common.UI.BaseView.prototype.show.call(this,arguments); this.updateSignatures(); this.updateEncrypt(); + this.scroller && this.scroller.update(); }, setMode: function(mode) { diff --git a/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js b/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js index fabfb6020..a232f60b7 100644 --- a/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js +++ b/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js @@ -84,13 +84,19 @@ define([ if (_.isUndefined(this.scroller)) { this.scroller = new Common.UI.Scroller({ el: this.$el, - suppressScrollX: true + suppressScrollX: true, + alwaysVisibleY: true }); } return this; }, + show: function() { + Common.UI.BaseView.prototype.show.call(this,arguments); + this.scroller && this.scroller.update(); + }, + onFormatClick: function(e) { var type = e.currentTarget.attributes['format']; if (!_.isUndefined(type) && this.menu) { @@ -145,13 +151,19 @@ define([ if (_.isUndefined(this.scroller)) { this.scroller = new Common.UI.Scroller({ el: this.$el, - suppressScrollX: true + suppressScrollX: true, + alwaysVisibleY: true }); } return this; }, + show: function() { + Common.UI.BaseView.prototype.show.call(this,arguments); + this.scroller && this.scroller.update(); + }, + onFormatClick: function(e) { var type = e.currentTarget.attributes['format'], ext = e.currentTarget.attributes['format-ext']; @@ -169,9 +181,9 @@ define([ '
', '
', '
', - '
', - '
', - '
', + '
', + '
', + '
', '
', '
' ].join('')), @@ -505,7 +517,8 @@ define([ if (_.isUndefined(this.scroller)) { this.scroller = new Common.UI.Scroller({ el: this.$el, - suppressScrollX: true + suppressScrollX: true, + alwaysVisibleY: true }); } @@ -567,6 +580,7 @@ define([ this.updateMetricUnit(); this._initSettings = false; } + this.scroller && this.scroller.update(); this.fireEvent('show', this); }, @@ -938,10 +952,10 @@ define([ if (_.isUndefined(this.scroller)) { this.scroller = new Common.UI.Scroller({ el: this.$el, - suppressScrollX: true + suppressScrollX: true, + alwaysVisibleY: true }); } - return this; }, @@ -949,6 +963,7 @@ define([ Common.UI.BaseView.prototype.show.call(this,arguments); this.updateSettings(); + this.scroller && this.scroller.update(); }, setMode: function(mode) { @@ -1268,7 +1283,8 @@ define([ if (_.isUndefined(this.scroller)) { this.scroller = new Common.UI.Scroller({ el: this.$el, - suppressScrollX: true + suppressScrollX: true, + alwaysVisibleY: true }); } @@ -1279,6 +1295,7 @@ define([ Common.UI.BaseView.prototype.show.call(this,arguments); this.updateSettings(); + this.scroller && this.scroller.update(); }, setMode: function(mode) { @@ -1391,13 +1408,19 @@ define([ if (_.isUndefined(this.scroller)) { this.scroller = new Common.UI.Scroller({ el: this.$el, - suppressScrollX: true + suppressScrollX: true, + alwaysVisibleY: true }); } return this; }, + show: function() { + Common.UI.BaseView.prototype.show.call(this,arguments); + this.scroller && this.scroller.update(); + }, + onRecentFileClick: function(view, itemview, record){ if ( this.menu ) this.menu.fireEvent('recent:open', [this.menu, record.get('url')]); @@ -1460,13 +1483,19 @@ define([ if (_.isUndefined(this.scroller)) { this.scroller = new Common.UI.Scroller({ el: this.$el, - suppressScrollX: true + suppressScrollX: true, + alwaysVisibleY: true }); } return this; }, + show: function() { + Common.UI.BaseView.prototype.show.call(this,arguments); + this.scroller && this.scroller.update(); + }, + _onBlankDocument: function() { if ( this.menu ) this.menu.fireEvent('create:new', [this.menu, 'blank']); @@ -1662,7 +1691,8 @@ define([ if (_.isUndefined(this.scroller)) { this.scroller = new Common.UI.Scroller({ el: this.$el, - suppressScrollX: true + suppressScrollX: true, + alwaysVisibleY: true }); } @@ -1673,6 +1703,7 @@ define([ Common.UI.BaseView.prototype.show.call(this,arguments); this.updateFileInfo(); + this.scroller && this.scroller.update(); }, hide: function() { @@ -1903,7 +1934,8 @@ define([ if (_.isUndefined(this.scroller)) { this.scroller = new Common.UI.Scroller({ el: this.$el, - suppressScrollX: true + suppressScrollX: true, + alwaysVisibleY: true }); } @@ -1915,6 +1947,7 @@ define([ show: function() { Common.UI.BaseView.prototype.show.call(this,arguments); + this.scroller && this.scroller.update(); }, hide: function() { @@ -2193,7 +2226,8 @@ define([ if (_.isUndefined(this.scroller)) { this.scroller = new Common.UI.Scroller({ el: this.$el, - suppressScrollX: true + suppressScrollX: true, + alwaysVisibleY: true }); } @@ -2207,6 +2241,7 @@ define([ Common.UI.BaseView.prototype.show.call(this,arguments); this.updateSignatures(); this.updateEncrypt(); + this.scroller && this.scroller.update(); }, setMode: function(mode) {