WIP spacePadding -> viewportPadding, changed to accommodate maxHeight instead of popoverHeight