diff options
author | Bart Visscher <bartv@thisnet.nl> | 2011-10-21 21:49:03 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2011-10-21 22:08:55 +0200 |
commit | 92fa6f0a48408d7064b5896d9ee8c9157d3efb12 (patch) | |
tree | 8e350d380a9ae88481f3a92f25c966b10eaaa539 /core | |
parent | eb68201bc5e8b9c6a23af8aa1f7f8c8990c5b3dc (diff) | |
download | nextcloud-server-92fa6f0a48408d7064b5896d9ee8c9157d3efb12.tar.gz nextcloud-server-92fa6f0a48408d7064b5896d9ee8c9157d3efb12.zip |
Fix size calculation with css styling of tipsy popup
Diffstat (limited to 'core')
-rw-r--r-- | core/js/jquery-tipsy.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/js/jquery-tipsy.js b/core/js/jquery-tipsy.js index 9567ed3bacc..ef4bbfd87a1 100644 --- a/core/js/jquery-tipsy.js +++ b/core/js/jquery-tipsy.js @@ -31,6 +31,10 @@ height: this.$element[0].offsetHeight }); + if (this.options.className) { + $tip.addClass(maybeCall(this.options.className, this.$element[0])); + } + var actualWidth = $tip[0].offsetWidth, actualHeight = $tip[0].offsetHeight, gravity = maybeCall(this.options.gravity, this.$element[0]); @@ -61,9 +65,6 @@ $tip.css(tp).addClass('tipsy-' + gravity); $tip.find('.tipsy-arrow')[0].className = 'tipsy-arrow tipsy-arrow-' + gravity.charAt(0); - if (this.options.className) { - $tip.addClass(maybeCall(this.options.className, this.$element[0])); - } if (this.options.fade) { $tip.stop().css({opacity: 0, display: 'block', visibility: 'visible'}).animate({opacity: this.options.opacity}); |