Fix accessibility of last menu items of each dropdown if window viewport height is too small to display the full menu and viewport height is less than 570px
Set dynamically max-height for the dropdown menu to adapt window vierport height.
Set dynamically the padding-top for the submenus (replace 8 value for offset top by getting parent menu link and dropdown padding-top)
Testing Instructions
Apply Patch
Clear all caches (admin and browser)
Resize your window in order to hide bottom of one or more dropdown menu when opened
Mouse over the dropdown, with patch applied, the scrolling will be automatically added if needed (without patch, not possible to access last items of the dropdown)
Check if submenu position top is still align with the menu dropdown
Play a bit with different window heights to check if behavior is working as expected : last menu items always accessible when hovering the menu)
Before Patch on latest staging :
(to take into account last changes for submenu dynamic position when outside the viewport: #11080 )
I have tested this issue successfully with Joomla Version: Joomla! 3.6.1-dev Development [ Noether ] 13-July-2016 10:08 GMT
OS Windows 8.1 and browsers Firefox 47.0.1, Chrome Version 51.0.2704.106 m and Safari 5.1.7
I have tested this item✅ successfully on 5868b9e
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11216.
Thanks @JoomliC