[DE PE SSE] By bug 58696
This commit is contained in:
parent
3d24b01699
commit
e7ba2e0180
|
@ -334,11 +334,23 @@ define([
|
||||||
ChangeSettings: function(props) {
|
ChangeSettings: function(props) {
|
||||||
},
|
},
|
||||||
|
|
||||||
|
updateScrollers: function () {
|
||||||
|
this.$resultsContainer.scroller.update({alwaysVisibleY: true});
|
||||||
|
this.$searchContainer.scroller.update({alwaysVisibleY: true});
|
||||||
|
|
||||||
|
setTimeout(_.bind(function () {
|
||||||
|
if (this.$searchContainer.find('> .ps-scrollbar-y-rail').is(':visible')) {
|
||||||
|
this.$resultsContainer.find('.ps-scrollbar-y-rail').addClass('set-left');
|
||||||
|
} else {
|
||||||
|
this.$resultsContainer.find('.ps-scrollbar-y-rail').removeClass('set-left');
|
||||||
|
}
|
||||||
|
}, this), 100);
|
||||||
|
},
|
||||||
|
|
||||||
updateResultsContainerHeight: function () {
|
updateResultsContainerHeight: function () {
|
||||||
if (this.$resultsContainer) {
|
if (this.$resultsContainer) {
|
||||||
this.$resultsContainer.outerHeight(Math.max($('#search-box').outerHeight() - $('#search-header').outerHeight() - $('#search-adv-settings').outerHeight(), 112));
|
this.$resultsContainer.outerHeight(Math.max($('#search-box').outerHeight() - $('#search-header').outerHeight() - $('#search-adv-settings').outerHeight(), 112));
|
||||||
this.$resultsContainer.scroller.update({alwaysVisibleY: true});
|
this.updateScrollers();
|
||||||
this.$searchContainer.scroller.update({alwaysVisibleY: false});
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -262,6 +262,12 @@
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ps-scrollbar-y-rail {
|
||||||
|
&.set-left {
|
||||||
|
right: 11px !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#search-container {
|
#search-container {
|
||||||
|
|
|
@ -333,7 +333,7 @@ define([
|
||||||
onEndTextAroundSearch: function () {
|
onEndTextAroundSearch: function () {
|
||||||
if (this.view) {
|
if (this.view) {
|
||||||
this._state.isStartedAddingResults = false;
|
this._state.isStartedAddingResults = false;
|
||||||
this.view.$resultsContainer.scroller.update({alwaysVisibleY: true});
|
this.view.updateScrollers();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -299,7 +299,7 @@ define([
|
||||||
onEndTextAroundSearch: function () {
|
onEndTextAroundSearch: function () {
|
||||||
if (this.view) {
|
if (this.view) {
|
||||||
this._state.isStartedAddingResults = false;
|
this._state.isStartedAddingResults = false;
|
||||||
this.view.$resultsContainer.scroller.update({alwaysVisibleY: true});
|
this.view.updateScrollers();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -429,7 +429,7 @@ define([
|
||||||
onEndTextAroundSearch: function () {
|
onEndTextAroundSearch: function () {
|
||||||
if (this.view) {
|
if (this.view) {
|
||||||
this._state.isStartedAddingResults = false;
|
this._state.isStartedAddingResults = false;
|
||||||
this.view.$resultsContainer.scroller.update({alwaysVisibleY: true});
|
this.view.updateScrollers();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue