Use the correct event listener to adjust minimap positioning (#12896)

stable/6.4.x
Thibaud Colas 2025-02-18 18:53:33 +00:00 zatwierdzone przez Matt Westcott
rodzic 198ff1bfd3
commit 1033813347
3 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -8,6 +8,7 @@ Changelog
* Fix: Support searching `none()` querysets (Matt Westcott)
* Fix: Correctly handle UUID primary keys when invoking background tasks (Matt Westcott)
* Fix: Fix regression where nested sub-menu items would not be visible (Sage Abdullah)
* Fix: Ensure the top of the minimap correctly adjusts when resizing the browser viewport (Thibaud Colas)
* Maintenance: Remove upper version boundary for django-filter. (Dan Braghis)
* Docs: Fix typo in the headless documentation page (Mahmoud Nasser)

Wyświetl plik

@ -127,7 +127,7 @@ export const initMinimap = (
container.style.setProperty('--offset-top', `${container.offsetTop}px`);
const updateOffsetTop = debounce(setOffsetTop, 100);
document.addEventListener('resize', updateOffsetTop);
window.addEventListener('resize', updateOffsetTop);
setOffsetTop();
updateMinimap(container);

Wyświetl plik

@ -17,6 +17,7 @@ depth: 1
* Support searching `none()` querysets (Matt Westcott)
* Correctly handle UUID primary keys when invoking background tasks (Matt Westcott)
* Fix regression where nested sub-menu items would not be visible (Sage Abdullah)
* Ensure the top of the minimap correctly adjusts when resizing the browser viewport (Thibaud Colas)
### Maintenance