We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e8ce32 commit 10d6d40Copy full SHA for 10d6d40
src/js/tooltipster.js
@@ -3195,9 +3195,10 @@ Ruler.prototype = {
3195
// bcr.width/height are not defined in IE8- but in this
3196
// case, bcr.right/bottom will have the same value
3197
// 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
+ // after scrolling for reasons yet to be determined.
+ // tooltipBcr.top/left might not be 0, see issue #514
+ height: tooltipBcr.height || (tooltipBcr.bottom - tooltipBcr.top),
3201
+ width: tooltipBcr.width || (tooltipBcr.right - tooltipBcr.left)
3202
}};
3203
3204
if (this.constraints) {
0 commit comments