mirror of
https://github.com/wekan/wekan.git
synced 2025-04-24 22:17:16 -04:00
parent
1b06997001
commit
a47c0dd512
1 changed files with 3 additions and 8 deletions
|
@ -789,17 +789,12 @@ BlazeComponent.extendComponent({
|
|||
return false;
|
||||
}
|
||||
|
||||
const spinnerViewPosition = this.spinner.offsetTop - this.container.offsetTop + this.spinner.clientHeight;
|
||||
|
||||
const parentViewHeight = this.container.clientHeight;
|
||||
const bottomViewPosition = this.container.scrollTop + parentViewHeight;
|
||||
|
||||
let spinnerOffsetTop = this.spinner.offsetTop;
|
||||
|
||||
const addCard = $(this.container).find("a.open-minicard-composer").first()[0];
|
||||
if (addCard !== undefined) {
|
||||
spinnerOffsetTop -= addCard.clientHeight;
|
||||
}
|
||||
|
||||
return bottomViewPosition > spinnerOffsetTop;
|
||||
return bottomViewPosition > spinnerViewPosition;
|
||||
}
|
||||
|
||||
getSkSpinnerName() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue