Skip to content

Commit 10d6d40

Browse files
committed
partialfix for #514
1 parent 5e8ce32 commit 10d6d40

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/js/tooltipster.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3195,9 +3195,10 @@ Ruler.prototype = {
31953195
// bcr.width/height are not defined in IE8- but in this
31963196
// case, bcr.right/bottom will have the same value
31973197
// except in iOS 8+ where tooltipBcr.bottom/right are wrong
3198-
// after scrolling for reasons yet to be determined
3199-
height: tooltipBcr.height || tooltipBcr.bottom,
3200-
width: tooltipBcr.width || tooltipBcr.right
3198+
// after scrolling for reasons yet to be determined.
3199+
// tooltipBcr.top/left might not be 0, see issue #514
3200+
height: tooltipBcr.height || (tooltipBcr.bottom - tooltipBcr.top),
3201+
width: tooltipBcr.width || (tooltipBcr.right - tooltipBcr.left)
32013202
}};
32023203

32033204
if (this.constraints) {

0 commit comments

Comments
 (0)