Scroll right panel to top
This commit is contained in:
parent
a10f12fb49
commit
5d7529fb63
|
@ -286,8 +286,10 @@ define([
|
||||||
if ( !target_pane.hasClass('active') ) {
|
if ( !target_pane.hasClass('active') ) {
|
||||||
target_pane.parent().find('> .active').removeClass('active');
|
target_pane.parent().find('> .active').removeClass('active');
|
||||||
target_pane.addClass("active");
|
target_pane.addClass("active");
|
||||||
if (this.scroller)
|
if (this.scroller) {
|
||||||
this.scroller.update();
|
this.scroller.update();
|
||||||
|
this.scroller.scrollTop(0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (!this._settings[type].btn.isActive())
|
if (!this._settings[type].btn.isActive())
|
||||||
this._settings[type].btn.toggle(true, false);
|
this._settings[type].btn.toggle(true, false);
|
||||||
|
|
|
@ -269,8 +269,10 @@ define([
|
||||||
if ( !target_pane.hasClass('active') ) {
|
if ( !target_pane.hasClass('active') ) {
|
||||||
target_pane.parent().find('> .active').removeClass('active');
|
target_pane.parent().find('> .active').removeClass('active');
|
||||||
target_pane.addClass("active");
|
target_pane.addClass("active");
|
||||||
if (this.scroller)
|
if (this.scroller) {
|
||||||
this.scroller.update();
|
this.scroller.update();
|
||||||
|
this.scroller.scrollTop(0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (!this._settings[type].btn.isActive())
|
if (!this._settings[type].btn.isActive())
|
||||||
this._settings[type].btn.toggle(true, false);
|
this._settings[type].btn.toggle(true, false);
|
||||||
|
|
|
@ -286,8 +286,10 @@ define([
|
||||||
if ( !target_pane.hasClass('active') ) {
|
if ( !target_pane.hasClass('active') ) {
|
||||||
target_pane.parent().find('> .active').removeClass('active');
|
target_pane.parent().find('> .active').removeClass('active');
|
||||||
target_pane.addClass("active");
|
target_pane.addClass("active");
|
||||||
if (this.scroller)
|
if (this.scroller) {
|
||||||
this.scroller.update();
|
this.scroller.update();
|
||||||
|
this.scroller.scrollTop(0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (!this._settings[type].btn.isActive())
|
if (!this._settings[type].btn.isActive())
|
||||||
this._settings[type].btn.toggle(true, false);
|
this._settings[type].btn.toggle(true, false);
|
||||||
|
|
Loading…
Reference in a new issue