Skip to content

Commit

Permalink
render the color picker in a different place to avoid scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
offtherailz committed Oct 28, 2016
1 parent 67b017d commit 8631f9f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const ColorPickerRenderer = React.createClass({
},
calculateTop(y) {
let h = getWindowSize().maxHeight;
return (y + 300 > h) ? h - 305 : y;
return ((y + 300 > h) ? h - 305 : y ) - 300;
},
hexToRgb(hex) {
const result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
Expand Down

0 comments on commit 8631f9f

Please sign in to comment.