[MWF] Fix ComboBox list to not display offscreen (#15462)

The fix mimics the behavior of Windows/.NET.