django-appointment 📦¶
v3.13.1 🆕
Release Notes for Version 3.13.1¶
Introduction 📜¶
Version 3.13.1 is a bug fix release for 3.13.0. It fixes the right-click menu on the staff calendar, which could open away from the cursor and run off the edge of the window. There is no database change and no setting to add; see the 3.13.0 release notes for everything new in the 3.13 series.
Bug Fixes 🐛¶
- The calendar's right-click menu opens at the cursor. The New Appointment menu was placed at the cursor's position on the page. On a site whose layout scrolls an inner area or positions the content column (an admin with a sidebar and a fixed header, for example), that position was off by the sidebar's width and the header's height. The menu is now placed at the cursor's position in the window, so it lands next to the cursor whatever the layout.
- The menu stays inside the window. Near the right or bottom edge, it now opens to the left of or above the cursor instead of running off the screen.
- The menu closes as you'd expect. Besides a click, it now also closes on Escape, when the page or any scrolling area scrolls, and when the window is resized, rather than staying where it was while the calendar moved.
Good to Know 📝¶
- If you override
administration/staff_index.html: the menu's positioning moved from the inlinestyleof#customContextMenuinto the package CSS (.djappt-context-menu). If your copy of the template still hasposition: absolutein that inline style, remove it, or the menu keeps opening in the wrong place on layouts like the one above. Keepdisplay: none, which hides the menu until it is used. - If you worked around the menu's position in your own CSS or JavaScript, you can remove the workaround.
Getting Started 🚀¶
Installation 📥:¶
The fix is in the package's JavaScript and CSS, so run python manage.py collectstatic after upgrading if you serve
collected static files.
Previous Version Highlights 🔙¶
Support & Feedback 📞¶
Feedback is welcome. For support, documentation, and further details, please refer to the documentation site or open an issue on GitHub.