mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-08 17:22:31 +03:00
lint + wrong comparison
This commit is contained in:
Vendored
+2
-2
@@ -180,7 +180,7 @@
|
|||||||
actualWidth = $tip[0].offsetWidth;
|
actualWidth = $tip[0].offsetWidth;
|
||||||
actualHeight = $tip[0].offsetHeight;
|
actualHeight = $tip[0].offsetHeight;
|
||||||
|
|
||||||
if (placement == "top" && actualHeight != actualWidth){
|
if (placement == "top" && actualHeight != height){
|
||||||
offset.top = offset.top + height - actualHeight;
|
offset.top = offset.top + height - actualHeight;
|
||||||
replace = true;
|
replace = true;
|
||||||
}
|
}
|
||||||
@@ -190,7 +190,7 @@
|
|||||||
|
|
||||||
if (offset.left < 0){
|
if (offset.left < 0){
|
||||||
delta = -offset.left * 2;
|
delta = -offset.left * 2;
|
||||||
offset.left = .1;
|
offset.left = 0.1;
|
||||||
$tip.offset(offset);
|
$tip.offset(offset);
|
||||||
actualWidth = $tip[0].offsetWidth;
|
actualWidth = $tip[0].offsetWidth;
|
||||||
actualHeight = $tip[0].offsetHeight;
|
actualHeight = $tip[0].offsetHeight;
|
||||||
|
|||||||
Reference in New Issue
Block a user