aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorafc163 <afc163@gmail.com>2015-12-11 21:43:48 +0800
committerafc163 <afc163@gmail.com>2015-12-11 21:43:48 +0800
commit428cfa8d5cef59bc47f3e03f9487b1314f3b85b3 (patch)
tree98228d97e7f0fabc7f8b272b7a7d3548869a7e09
parent5c1299b09986b98ac228ecd77b98ffa13a6597c2 (diff)
downloadtime-picker-428cfa8d5cef59bc47f3e03f9487b1314f3b85b3.tar.gz
time-picker-428cfa8d5cef59bc47f3e03f9487b1314f3b85b3.tar.zst
time-picker-428cfa8d5cef59bc47f3e03f9487b1314f3b85b3.zip
fix relative scrollTop, #9
-rw-r--r--src/module/Select.jsx2
1 files changed, 1 insertions, 1 deletions
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({
67 index = 0; 67 index = 0;
68 } 68 }
69 const topOption = list.children[index]; 69 const topOption = list.children[index];
70 const to = topOption.offsetTop - select.offsetTop; 70 const to = topOption.offsetTop;
71 scrollTo(select, to, duration); 71 scrollTo(select, to, duration);
72 }, 72 },
73 73