Skip to content

Commit

Permalink
fix: getContainer extra width style (#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Jul 8, 2021
1 parent ddba9d5 commit d7f6f92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Dom/scrollLocker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export default class ScrollLocker {
container,
setStyle(
{
width: `calc(100% - ${scrollBarSize}px)`,
width: scrollBarSize !== 0 ? `calc(100% - ${scrollBarSize}px)` : undefined,
overflow: 'hidden',
overflowX: 'hidden',
overflowY: 'hidden',
Expand Down

1 comment on commit d7f6f92

@ariana-yp
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个指定的getContainer的节点宽度并不是100%。而是固定宽度的情况下兼容吗?

Please sign in to comment.