Skip to content

Commit a132fda

Browse files
committed
fix(ExpandInteractiveArea): negative number issues
1 parent 535b5ac commit a132fda

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Bar/Bar.styled.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ export const StyledBar = styled('div', {
3131

3232
export const StyledInteractiveArea = styled.div<StyledInteractiveAreaProps>(
3333
({ top = 0, right = 0, bottom = 0, left = 0, vertical }) => ({
34-
boxSizing: 'content-box',
35-
width: '100%',
36-
height: '100%',
37-
padding: `${top}px ${right}px ${bottom}px ${left}px`,
38-
margin: `-${top}px -${right}px -${bottom}px -${left}px`,
34+
position: 'absolute',
35+
top: -top,
36+
left: -left,
37+
right: -right,
38+
bottom: -bottom,
3939
cursor: vertical ? 'row-resize' : 'col-resize',
4040
WebkitTapHighlightColor: 'transparent',
4141
userSelect: 'none', // disable ios long press popup

0 commit comments

Comments
 (0)