The popover adjusts the width of itself by default, but it would display a very narrow popover instead of switch placement, thus I used this method.