mirror of
https://github.com/flarum/core.git
synced 2025-07-25 18:51:40 +02:00
More accurate scrubber height resizing
This commit is contained in:
@@ -315,8 +315,9 @@ export default class PostScrubber extends Component {
|
|||||||
|
|
||||||
// Adjust the height of the scrollbar so that it fills the height of
|
// Adjust the height of the scrollbar so that it fills the height of
|
||||||
// the sidebar and doesn't overlap the footer.
|
// the sidebar and doesn't overlap the footer.
|
||||||
|
var scrubber = this.$();
|
||||||
var scrollbar = this.$('.scrubber-scrollbar');
|
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) {
|
onmousedown(e) {
|
||||||
|
Reference in New Issue
Block a user