Skip to content

Commit c5b4990

Browse files
committed
1 parent 5d93c0b commit c5b4990

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Bar/Bar.styled.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,10 @@ export const StyledBar = styled('div', {
3232
export const StyledInteractiveArea = styled.div<StyledInteractiveAreaProps>(
3333
({ top = 0, right = 0, bottom = 0, left = 0, vertical }) => ({
3434
boxSizing: 'content-box',
35-
position: 'absolute',
36-
top: '50%',
37-
left: '50%',
3835
width: '100%',
3936
height: '100%',
40-
transform: 'translate(-50%, -50%)',
4137
padding: `${top}px ${right}px ${bottom}px ${left}px`,
38+
margin: `-${top}px -${right}px -${bottom}px -${left}px`,
4239
cursor: vertical ? 'row-resize' : 'col-resize',
4340
WebkitTapHighlightColor: 'transparent',
4441
userSelect: 'none', // disable ios long press popup

0 commit comments

Comments
 (0)