kopia lustrzana https://github.com/wagtail/wagtail
Use the correct event listener to adjust minimap positioning (#12896)
rodzic
3e24fee094
commit
952ee04f08
|
@ -26,6 +26,7 @@ Changelog
|
|||
* Fix: Prevent error when filtering by locale and searching with Elasticsearch (Sage Abdullah)
|
||||
* Fix: Support searching `none()` querysets (Matt Westcott)
|
||||
* Fix: Correctly handle UUID primary keys when invoking background tasks (Matt Westcott)
|
||||
* 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)
|
||||
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -16,6 +16,7 @@ depth: 1
|
|||
* Prevent error when filtering by locale and searching with Elasticsearch (Sage Abdullah)
|
||||
* Support searching `none()` querysets (Matt Westcott)
|
||||
* Correctly handle UUID primary keys when invoking background tasks (Matt Westcott)
|
||||
* Ensure the top of the minimap correctly adjusts when resizing the browser viewport (Thibaud Colas)
|
||||
|
||||
### Maintenance
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue