small cleanup of repositionAboveContent method