Fix tooltip position problem with `left` and `right`, related to #115