Skip to content

Commit 968c09a

Browse files
committed
Fixed body scroll issue
1 parent b2c3aa7 commit 968c09a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/styled-components/Tbody.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ const StyledTbody = styled(Tbody).attrs(({ isPrinting, height }) => (
2929
width: 100%;
3030
margin-right: auto;
3131
margin-left: auto;
32-
overflow-y: ${props => props.isPrinting || props.innerHeight === props.visibleHeight ? 'hidden': 'scroll'};
33-
overflow-x: ${props => props.isPrinting ? 'hidden': 'scroll'};
32+
overflow-y: ${props => props.isPrinting || props.innerHeight === props.height ? 'hidden': 'auto'};
33+
overflow-x: ${props => props.isPrinting ? 'hidden': 'auto'};
3434
border-bottom: 1px solid #ddd;
3535
`;
3636

0 commit comments

Comments
 (0)