Skip to content

Commit 4748f7b

Browse files
committed
dist build
1 parent e6e48ef commit 4748f7b

File tree

4 files changed

+26
-24
lines changed

4 files changed

+26
-24
lines changed

dist/js/tooltipster.bundle.js

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ var defaults = {
8686
hasTransitions: transitionSupport(),
8787
IE: false,
8888
// don't set manually, it will be updated by a build task after the manifest
89-
semVer: '4.0.4',
89+
semVer: '4.0.5',
9090
window: win
9191
},
9292
core = function() {
@@ -1836,7 +1836,6 @@ $.Tooltipster.prototype = {
18361836
});
18371837
});
18381838

1839-
18401839
if ( self.__options.triggerClose.mouseleave
18411840
|| (self.__options.triggerClose.touchleave && env.hasTouchCapability)
18421841
) {
@@ -3170,12 +3169,14 @@ Ruler.prototype = {
31703169

31713170
this.__forceRedraw();
31723171

3173-
var tooltipBrc = this.__$tooltip[0].getBoundingClientRect(),
3172+
var tooltipBcr = this.__$tooltip[0].getBoundingClientRect(),
31743173
result = { size: {
3175-
// brc.width/height are not defined in IE8- but in this
3176-
// case, brc.right/bottom will have the same value
3177-
height: tooltipBrc.bottom,
3178-
width: tooltipBrc.right
3174+
// bcr.width/height are not defined in IE8- but in this
3175+
// case, bcr.right/bottom will have the same value
3176+
// except in iOS 8+ where tooltipBcr.bottom is wrong after scrolling
3177+
// for reasons yet to be determined
3178+
height: tooltipBcr.height || tooltipBcr.bottom,
3179+
width: tooltipBcr.right
31793180
}};
31803181

31813182
if (this.constraints) {
@@ -3192,20 +3193,20 @@ Ruler.prototype = {
31923193

31933194
var $content = this.__$tooltip.find('.tooltipster-content'),
31943195
height = this.__$tooltip.outerHeight(),
3195-
contentBrc = $content[0].getBoundingClientRect(),
3196+
contentBcr = $content[0].getBoundingClientRect(),
31963197
fits = {
31973198
height: height <= this.constraints.height,
31983199
width: (
31993200
// this condition accounts for min-width property that
32003201
// may apply
3201-
tooltipBrc.width <= this.constraints.width
3202+
tooltipBcr.width <= this.constraints.width
32023203
// the -1 is here because scrollWidth actually returns
3203-
// a rounded value, and may be greater than brc.width if
3204+
// a rounded value, and may be greater than bcr.width if
32043205
// it was rounded up. This may cause an issue for contents
32053206
// which actually really overflow by 1px or so, but that
32063207
// should be rare. Not sure how to solve this efficiently.
32073208
// See http://blogs.msdn.com/b/ie/archive/2012/02/17/sub-pixel-rendering-and-the-css-object-model.aspx
3208-
&& contentBrc.width >= $content[0].scrollWidth - 1
3209+
&& contentBcr.width >= $content[0].scrollWidth - 1
32093210
)
32103211
};
32113212

dist/js/tooltipster.bundle.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/tooltipster.core.js

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ var defaults = {
8686
hasTransitions: transitionSupport(),
8787
IE: false,
8888
// don't set manually, it will be updated by a build task after the manifest
89-
semVer: '4.0.4',
89+
semVer: '4.0.5',
9090
window: win
9191
},
9292
core = function() {
@@ -1836,7 +1836,6 @@ $.Tooltipster.prototype = {
18361836
});
18371837
});
18381838

1839-
18401839
if ( self.__options.triggerClose.mouseleave
18411840
|| (self.__options.triggerClose.touchleave && env.hasTouchCapability)
18421841
) {
@@ -3170,12 +3169,14 @@ Ruler.prototype = {
31703169

31713170
this.__forceRedraw();
31723171

3173-
var tooltipBrc = this.__$tooltip[0].getBoundingClientRect(),
3172+
var tooltipBcr = this.__$tooltip[0].getBoundingClientRect(),
31743173
result = { size: {
3175-
// brc.width/height are not defined in IE8- but in this
3176-
// case, brc.right/bottom will have the same value
3177-
height: tooltipBrc.bottom,
3178-
width: tooltipBrc.right
3174+
// bcr.width/height are not defined in IE8- but in this
3175+
// case, bcr.right/bottom will have the same value
3176+
// except in iOS 8+ where tooltipBcr.bottom is wrong after scrolling
3177+
// for reasons yet to be determined
3178+
height: tooltipBcr.height || tooltipBcr.bottom,
3179+
width: tooltipBcr.right
31793180
}};
31803181

31813182
if (this.constraints) {
@@ -3192,20 +3193,20 @@ Ruler.prototype = {
31923193

31933194
var $content = this.__$tooltip.find('.tooltipster-content'),
31943195
height = this.__$tooltip.outerHeight(),
3195-
contentBrc = $content[0].getBoundingClientRect(),
3196+
contentBcr = $content[0].getBoundingClientRect(),
31963197
fits = {
31973198
height: height <= this.constraints.height,
31983199
width: (
31993200
// this condition accounts for min-width property that
32003201
// may apply
3201-
tooltipBrc.width <= this.constraints.width
3202+
tooltipBcr.width <= this.constraints.width
32023203
// the -1 is here because scrollWidth actually returns
3203-
// a rounded value, and may be greater than brc.width if
3204+
// a rounded value, and may be greater than bcr.width if
32043205
// it was rounded up. This may cause an issue for contents
32053206
// which actually really overflow by 1px or so, but that
32063207
// should be rare. Not sure how to solve this efficiently.
32073208
// See http://blogs.msdn.com/b/ie/archive/2012/02/17/sub-pixel-rendering-and-the-css-object-model.aspx
3208-
&& contentBrc.width >= $content[0].scrollWidth - 1
3209+
&& contentBcr.width >= $content[0].scrollWidth - 1
32093210
)
32103211
};
32113212

0 commit comments

Comments
 (0)