kopia lustrzana https://github.com/wagtail/wagtail
Use the correct event listener to adjust minimap positioning (#12896)
rodzic
198ff1bfd3
commit
1033813347
|
@ -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)
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue