mirror of
https://github.com/flarum/framework.git
synced 2025-04-24 21:54:04 +08:00
More accurate scrubber height resizing
This commit is contained in:
parent
aec6a4b86c
commit
cbd3509ad2
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user