Skip to content

Commit 0824e1f

Browse files
committed
Stopped messing with overflow-x
1 parent 14bdbe0 commit 0824e1f

File tree

4 files changed

+6
-13
lines changed

4 files changed

+6
-13
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tooltipster",
3-
"version": "3.1.1",
3+
"version": "3.1.2",
44
"main": ["js/jquery.tooltipster.min.js", "css/tooltipster.css"],
55
"dependencies": {
66
"jquery": ">=1.7"

js/jquery.tooltipster.js

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
3-
Tooltipster 3.1.1 | 2014-01-15
3+
Tooltipster 3.1.2 | 2014-03-17
44
A rockin' custom tooltip jQuery plugin
55
66
Developed by Caleb Jacob under the MIT license http://opensource.org/licenses/MIT
@@ -53,7 +53,6 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
5353

5454
// list of instance variables
5555

56-
this.bodyOverflowX;
5756
// stack of custom callbacks provided as parameters to API methods
5857
this.callbacks = {
5958
hide: [],
@@ -295,10 +294,6 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
295294
// the timer (if any) will start when the tooltip has fully appeared after its transition
296295
var extraTime = self.options.speed;
297296

298-
// disable horizontal scrollbar to keep overflowing tooltips from jacking with it and then restore it to its previous value
299-
self.bodyOverflowX = $('body').css('overflow-x');
300-
$('body').css('overflow-x', 'hidden');
301-
302297
// get some other settings related to building the tooltip
303298
var animation = 'tooltipster-' + self.options.animation,
304299
animationSpeed = '-webkit-transition-duration: '+ self.options.speed +'ms; -webkit-animation-duration: '+ self.options.speed +'ms; -moz-transition-duration: '+ self.options.speed +'ms; -moz-animation-duration: '+ self.options.speed +'ms; -o-transition-duration: '+ self.options.speed +'ms; -o-animation-duration: '+ self.options.speed +'ms; -ms-transition-duration: '+ self.options.speed +'ms; -ms-animation-duration: '+ self.options.speed +'ms; transition-duration: '+ self.options.speed +'ms; animation-duration: '+ self.options.speed +'ms;',
@@ -530,10 +525,8 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
530525
// unbind orientationchange, scroll and resize listeners
531526
$(window).off('.'+ self.namespace);
532527

533-
$('body')
534-
// unbind any auto-closing click/touch listeners
535-
.off('.'+ self.namespace)
536-
.css('overflow-x', self.bodyOverflowX);
528+
// unbind any auto-closing click/touch listeners
529+
$('body').off('.'+ self.namespace);
537530

538531
// unbind any auto-closing hover listeners
539532
self.$elProxy.off('.'+ self.namespace + '-autoClose');

js/jquery.tooltipster.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.

tooltipster.jquery.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"keywords": [
66
"tooltip"
77
],
8-
"version": "3.1.1",
8+
"version": "3.1.2",
99
"author": {
1010
"name": "Caleb Jacob",
1111
"url": "http://calebjacob.com/"

0 commit comments

Comments
 (0)