diff --git a/component.json b/component.json
index 3acf839..222db64 100644
--- a/component.json
+++ b/component.json
@@ -19,7 +19,7 @@
},
"development": {
"component/aurora-tip": "*",
- "component/jquery": "*"
+ "component/event": "*"
},
"scripts": [
"index.js",
diff --git a/index.js b/index.js
index cb54b3a..1b881ea 100644
--- a/index.js
+++ b/index.js
@@ -307,8 +307,8 @@ Tip.prototype.offset = function(pos){
var eh = el.clientHeight;
var to = offset(target);
- var tw = target.clientWidth;
- var th = target.clientHeight;
+ var tw = target.offsetWidth;
+ var th = target.offsetHeight;
switch (pos) {
case 'top':
diff --git a/test/index.html b/test/index.html
index 65a3a78..1b00156 100644
--- a/test/index.html
+++ b/test/index.html
@@ -39,8 +39,8 @@
margin: 80px;
width: 80%;
}
- .tip {
- background-color: black;
+ #border {
+ border-width: 10px;
}
@@ -65,19 +65,24 @@
Hover Value
Terse Hover Value
Big
+ Thick border