mirror of
https://github.com/koloml/furbooru-tagging-assistant.git
synced 2025-12-24 07:12:57 +00:00
Calling resize event to recalculate media boxes positions
This commit is contained in:
@@ -10,4 +10,9 @@ document.querySelectorAll('.media-box').forEach(mediaBoxElement => {
|
||||
createMaintenanceStatusIcon(),
|
||||
)
|
||||
]);
|
||||
|
||||
// Attempt to fix misplacement of media boxes
|
||||
requestAnimationFrame(() => {
|
||||
window.dispatchEvent(new CustomEvent('resize'));
|
||||
})
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user