mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
d8e57f02a7
We want to avoid page jumps wherever possible. This change uses the original select element as a "proxy" to reserve the space in the DOM for the enhanced auto-complete when the JS runs. It uses visibility: hidden to make the select not rendered - but still take up space. The exact sizing for the CSS was determined by testing and reverse engineering the bootstrap calculations. The size of user pictures in selectors was reduced to avoid flicker when switching between no selection and a selected user. I could have reserved a larger amount of space, but it looks worse for pickers with no pictures.