Brought back auto-aligning dropdown if it stretches outside of the viewport and no align is given, broken in d9a5a7c, fixes #4619