SearchPopupField: Set bottomMargin to prevent vertical out-of-bounds
By default all margins are set to -1, which in terms of Popup Positioner means that popup's bounds won't be checked and pushed inside window's bounds. Setting bottom margin to 0 prevents popup from being too tall for small windows (like the one in scratchpad in which I'm testing it).
Width a window 400x400 px
After: