Setting contentStretch to the content part allows popovers to be animated nicely
Setting contentStretch to the content part allows popovers to be animated nicely

Refactored: Simpler code, smaller better functions