2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-05-30 15:24:08 +03:00

Tooltip: apply position class before positioning

This commit is contained in:
Mu-An Chiou
2013-06-28 11:05:38 +01:00
parent 09cdee2f03
commit 55fa1acbd6
4 changed files with 17 additions and 3 deletions
+1 -1
View File
@@ -1159,6 +1159,7 @@
$tip
.detach()
.css({ top: 0, left: 0, display: 'block' })
.addClass(placement)
this.options.container ? $tip.appendTo(this.options.container) : $tip.insertAfter(this.$element)
@@ -1195,7 +1196,6 @@
$tip
.offset(offset)
.addClass(placement)
.addClass('in')
var actualWidth = $tip[0].offsetWidth
+1 -1
View File
File diff suppressed because one or more lines are too long