1
0
mirror of https://github.com/flarum/core.git synced 2025-07-24 18:21:33 +02:00

More accurate scrubber height resizing

This commit is contained in:
Toby Zerner
2015-06-25 15:34:34 +09:30
parent 679f7c6760
commit 5fc4f58aa6

View File

@@ -315,8 +315,9 @@ export default class PostScrubber extends Component {
// Adjust the height of the scrollbar so that it fills the height of
// the sidebar and doesn't overlap the footer.
var scrubber = this.$();
var scrollbar = this.$('.scrubber-scrollbar');
scrollbar.css('max-height', $(window).height() - scrollbar.offset().top + $(window).scrollTop() - parseInt($('.global-page').css('padding-bottom')));
scrollbar.css('max-height', $(window).height() - scrubber.offset().top + $(window).scrollTop() - parseInt($('.global-page').css('padding-bottom')) - (scrubber.outerHeight() - scrollbar.outerHeight()));
}
onmousedown(e) {