Fix size calculation with css styling of tipsy popup

This commit is contained in:
Bart Visscher 2011-10-21 21:49:03 +02:00
parent eb68201bc5
commit 92fa6f0a48
1 changed files with 4 additions and 3 deletions

View File

@ -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});