Scroll right panel to top

This commit is contained in:
Julia Radzhabova 2019-01-22 11:39:24 +03:00
parent a10f12fb49
commit 5d7529fb63
3 changed files with 9 additions and 3 deletions

View file

@ -286,8 +286,10 @@ define([
if ( !target_pane.hasClass('active') ) {
target_pane.parent().find('> .active').removeClass('active');
target_pane.addClass("active");
if (this.scroller)
if (this.scroller) {
this.scroller.update();
this.scroller.scrollTop(0);
}
}
if (!this._settings[type].btn.isActive())
this._settings[type].btn.toggle(true, false);

View file

@ -269,8 +269,10 @@ define([
if ( !target_pane.hasClass('active') ) {
target_pane.parent().find('> .active').removeClass('active');
target_pane.addClass("active");
if (this.scroller)
if (this.scroller) {
this.scroller.update();
this.scroller.scrollTop(0);
}
}
if (!this._settings[type].btn.isActive())
this._settings[type].btn.toggle(true, false);

View file

@ -286,8 +286,10 @@ define([
if ( !target_pane.hasClass('active') ) {
target_pane.parent().find('> .active').removeClass('active');
target_pane.addClass("active");
if (this.scroller)
if (this.scroller) {
this.scroller.update();
this.scroller.scrollTop(0);
}
}
if (!this._settings[type].btn.isActive())
this._settings[type].btn.toggle(true, false);