Update Popover resizing logic for Bootstrap 3