From 00848880c0c73898cfb40883a7feb6292187557b Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Tue, 26 Jul 2022 21:15:38 +0300 Subject: [PATCH] [DE] Add scroll to list menu --- apps/documenteditor/main/app/view/Toolbar.js | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/apps/documenteditor/main/app/view/Toolbar.js b/apps/documenteditor/main/app/view/Toolbar.js index eb1e9de41..9c3705c8a 100644 --- a/apps/documenteditor/main/app/view/Toolbar.js +++ b/apps/documenteditor/main/app/view/Toolbar.js @@ -2043,7 +2043,7 @@ define([ cls: 'shifted-left', style: 'min-width: 145px', items: [ - {template: _.template('')}, + {template: _.template('')}, {caption: '--'}, this.mnuMarkerChangeLevel = new Common.UI.MenuItem({ caption: this.textChangeLevel, @@ -2074,7 +2074,7 @@ define([ new Common.UI.Menu({ cls: 'shifted-left', items: [ - {template: _.template('')}, + {template: _.template('')}, {caption: '--'}, this.mnuNumberChangeLevel = new Common.UI.MenuItem({ caption: this.textChangeLevel, @@ -2105,7 +2105,7 @@ define([ cls: 'shifted-left', style: 'min-width: 177px', items: [ - {template: _.template('')}, + {template: _.template('')}, {caption: '--'}, this.mnuMultiChangeLevel = new Common.UI.MenuItem({ caption: this.textChangeLevel, @@ -2226,8 +2226,7 @@ define([ el: $('#id-toolbar-menu-markers'), parentMenu: this.btnMarkers.menu, outerMenu: {menu: this.btnMarkers.menu, index: 0}, - restoreHeight: 138, - allowScrollbar: false, + restoreHeight: 144, delayRenderTips: true, store: new Common.UI.DataViewStore([ {id: 'id-markers-' + Common.UI.getId(), data: {type: 0, subtype: -1}, skipRenderOnChange: true, tip: this.textNone}, @@ -2269,8 +2268,7 @@ define([ el: $('#id-toolbar-menu-numbering'), parentMenu: this.btnNumbers.menu, outerMenu: {menu: this.btnNumbers.menu, index: 0}, - restoreHeight: 92, - allowScrollbar: false, + restoreHeight: 265, delayRenderTips: true, store: new Common.UI.DataViewStore(items), itemTemplate: _.template('
') @@ -2283,8 +2281,7 @@ define([ el: $('#id-toolbar-menu-multilevels'), parentMenu: this.btnMultilevels.menu, outerMenu: {menu: this.btnMultilevels.menu, index: 0}, - restoreHeight: 92, - allowScrollbar: false, + restoreHeight: 176, delayRenderTips: true, store: new Common.UI.DataViewStore([ {id: 'id-multilevels-' + Common.UI.getId(), data: {type: 2, subtype: -1}, skipRenderOnChange: true, tip: this.textNone},