From 428cfa8d5cef59bc47f3e03f9487b1314f3b85b3 Mon Sep 17 00:00:00 2001
From: afc163 <afc163@gmail.com>
Date: Fri, 11 Dec 2015 21:43:48 +0800
Subject: fix relative scrollTop, #9

---
 src/module/Select.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/module/Select.jsx')

diff --git a/src/module/Select.jsx b/src/module/Select.jsx
index 8cf4e2d..b24f20c 100644
--- a/src/module/Select.jsx
+++ b/src/module/Select.jsx
@@ -67,7 +67,7 @@ const Select = React.createClass({
       index = 0;
     }
     const topOption = list.children[index];
-    const to = topOption.offsetTop - select.offsetTop;
+    const to = topOption.offsetTop;
     scrollTo(select, to, duration);
   },
 
-- 
cgit v1.2.3

