threatboard feed carousels trigger resize on last page
Closed this issue · 1 comments
When scrolling to the last page of the reports or related boards carousels on the threatboard feed page, a page resize is triggered and the carousel sizes are incorrectly recalculated, and the user is unceremoniously sent back to the first page.
This effect does not occur on the global feed page (first window you see when going to the threat-beta dashboard.
Appears to be triggered by the last "page" having a smaller size than the window, so the component offset width is reduced. This causes the resize event.
Interestingly, turning off the CSS transition style (which gives the carousel the "scrolling" effect) does not cause the resize event to trigger. However, that is not the cause of the UI error.
Turns out the window's size is not being enforced (I thought the div was natively being given a width of 100%, but it's not).