WIP don't set maxHeight unless already set, flip must be based on popoverHeight when maxHeight isn't set