Skip to content
Snippets Groups Projects
Commit b16fbd69 authored by Phil Hughes's avatar Phil Hughes
Browse files

Fixed issue card not scrolling to correct position

parent 85a32984
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment