The change to `outerWidth()`/`outerHeight()` here wasn't related to the unit test failure, but it seems like they would be a more accurate measure of whether the popover is out of bounds (since `width()` and `height()` don't take the padding into account).