Menu refactoring: update scroller

This commit is contained in:
Julia Radzhabova 2019-06-21 11:46:51 +03:00
parent f7c6759cdb
commit 4103fc2abb
2 changed files with 1 additions and 3 deletions

View file

@ -380,7 +380,7 @@ define([
onAfterShowMenu: function(e) {
this.trigger('show:after', this, e);
if (this.scroller) {
this.scroller.update();
this.scroller.update({alwaysVisibleY: this.scrollAlwaysVisible});
var menuRoot = (this.cmpEl.attr('role') === 'menu') ? this.cmpEl : this.cmpEl.find('[role=menu]'),
$selected = menuRoot.find('> li .checked');
if ($selected.length) {

View file

@ -62,8 +62,6 @@ define([
{ caption: this.textManager, value: 'manager' },
{ caption: '--' }
]
}).on('show:after', function () {
this.scroller.update({alwaysVisibleY: true});
})
});
this.btnNamedRanges.render($('#ce-cell-name-menu'));