Fixed issue card not scrolling to correct position
This commit is contained in:
parent
85a329845f
commit
b16fbd69f5
1 changed files with 7 additions and 1 deletions
|
@ -46,8 +46,14 @@
|
|||
|
||||
if (issue) {
|
||||
const boardsList = document.querySelectorAll('.boards-list')[0];
|
||||
const right = (this.$el.offsetLeft + this.$el.offsetWidth) - boardsList.offsetWidth;
|
||||
const left = boardsList.scrollLeft - this.$el.offsetLeft;
|
||||
let right = (this.$el.offsetLeft + this.$el.offsetWidth);
|
||||
|
||||
if (window.innerWidth > 768 && boardsList.classList.contains('is-compact')) {
|
||||
right -= (boardsList.offsetWidth - 290);
|
||||
} else {
|
||||
right -= boardsList.offsetWidth;
|
||||
}
|
||||
|
||||
if (right - boardsList.scrollLeft > 0) {
|
||||
$(boardsList).animate({
|
||||
|
|
Loading…
Reference in a new issue