mirror of
https://github.com/flarum/framework.git
synced 2025-05-31 20:43:36 +08: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
|
||||
// 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) {
|
||||
|
Reference in New Issue
Block a user