Context menu improvements
Context menus are getting bigger, and they don't always fit inside the viewport. This issue is about improving the positioning of the context menu in general.
Some examples where it's going wrong:
- If you have many filters, and the context menu is too high, it doesn't fit inside the viewport anymore.
- If there is not enough space above and below the target from where the context menu is opened, it falls outside of the viewport.
- If there is not enough space on the right side, the context menu falls outside of the viewport.
Proposed changes:
- If a context menu doesn't fit vertically on the viewport, it should not fall out of bit, but the height should be limited and there should be a vertical scrollbar inside the context so that it's still usable.
- If a context menu doesn't fit horizontal on the viewport, but there is still enough space on the left or right side, then don't forget the alignment with the target.
Edited by Bram Wiepjes