Menu refactoring: update scroller
This commit is contained in:
parent
f7c6759cdb
commit
4103fc2abb
|
@ -380,7 +380,7 @@ define([
|
||||||
onAfterShowMenu: function(e) {
|
onAfterShowMenu: function(e) {
|
||||||
this.trigger('show:after', this, e);
|
this.trigger('show:after', this, e);
|
||||||
if (this.scroller) {
|
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]'),
|
var menuRoot = (this.cmpEl.attr('role') === 'menu') ? this.cmpEl : this.cmpEl.find('[role=menu]'),
|
||||||
$selected = menuRoot.find('> li .checked');
|
$selected = menuRoot.find('> li .checked');
|
||||||
if ($selected.length) {
|
if ($selected.length) {
|
||||||
|
|
|
@ -62,8 +62,6 @@ define([
|
||||||
{ caption: this.textManager, value: 'manager' },
|
{ caption: this.textManager, value: 'manager' },
|
||||||
{ caption: '--' }
|
{ caption: '--' }
|
||||||
]
|
]
|
||||||
}).on('show:after', function () {
|
|
||||||
this.scroller.update({alwaysVisibleY: true});
|
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
this.btnNamedRanges.render($('#ce-cell-name-menu'));
|
this.btnNamedRanges.render($('#ce-cell-name-menu'));
|
||||||
|
|
Loading…
Reference in a new issue