Fix column picker

This commit is contained in:
dominik-zeglen 2019-10-23 14:21:34 +02:00
parent 759561634d
commit d8138807a2

View file

@ -87,10 +87,11 @@ const ColumnPickerContent: React.FC<ColumnPickerContentProps> = props => {
const anchor = React.useRef<HTMLDivElement>(); const anchor = React.useRef<HTMLDivElement>();
const scrollPosition = useElementScroll(anchor); const scrollPosition = useElementScroll(anchor);
const dropShadow = anchor.current const dropShadow =
? scrollPosition.y + anchor.current.clientHeight < anchor.current && scrollPosition
anchor.current.scrollHeight ? scrollPosition.y + anchor.current.clientHeight <
: false; anchor.current.scrollHeight
: false;
return ( return (
<Card className={classes.root}> <Card className={classes.root}>