Skip to content

Commit d7f6f92

Browse files
authored
fix: getContainer extra width style (#260)
close ant-design/ant-design#31303
1 parent ddba9d5 commit d7f6f92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Dom/scrollLocker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export default class ScrollLocker {
9292
container,
9393
setStyle(
9494
{
95-
width: `calc(100% - ${scrollBarSize}px)`,
95+
width: scrollBarSize !== 0 ? `calc(100% - ${scrollBarSize}px)` : undefined,
9696
overflow: 'hidden',
9797
overflowX: 'hidden',
9898
overflowY: 'hidden',

0 commit comments

Comments
 (0)