Skip to content

Commit

Permalink
Selected time scrolltop fix (Hacker0x01#1396) (Hacker0x01#1454)
Browse files Browse the repository at this point in the history
The scroll position of the selected time is calculated using a height of 30px in time.jsx --> this.list.scrollTop = 30 * (multiplier * currH);
 
However, the actual height of the time-list-item is 31px, so the scroll height is typically incorrect.

This change ensures the selected time-list-item will be scrolled into view

fixes Hacker0x01#1396
  • Loading branch information
kirkdrichardson authored and martijnrusschen committed Sep 5, 2018
1 parent ce7880c commit 8115bdb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/stylesheets/datepicker.scss
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@
box-sizing: content-box;

li.react-datepicker__time-list-item {
height: 30px;
padding: 5px 10px;
&:hover {
cursor: pointer;
Expand Down

0 comments on commit 8115bdb

Please sign in to comment.