1
0
mirror of https://github.com/koloml/furbooru-tagging-assistant.git synced 2025-12-23 23:02:58 +00:00

Calling resize event to recalculate media boxes positions

This commit is contained in:
2024-05-26 05:11:02 +04:00
parent 216c3e75eb
commit 0637a21eb7

View File

@@ -10,4 +10,9 @@ document.querySelectorAll('.media-box').forEach(mediaBoxElement => {
createMaintenanceStatusIcon(),
)
]);
// Attempt to fix misplacement of media boxes
requestAnimationFrame(() => {
window.dispatchEvent(new CustomEvent('resize'));
})
});