Skip to content

Commit

Permalink
fix: the tester is not hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
WhiteMinds committed Nov 3, 2023
1 parent 5d7d051 commit 0af5959
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function useHighPrecisionScrollbarWidth(): {
const refTesterContent = useRef<HTMLDivElement>(null)

const tester = (
<div ref={refTesterContainer} style={{ width: 100, height: 100 }}>
<div ref={refTesterContainer} style={{ position: 'fixed', left: -100, top: -100, width: 100, height: 100 }}>
<div ref={refTesterContent} style={{ width: '100%' }}></div>
</div>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function useHighPrecisionScrollbarWidth(): {
const refTesterContent = useRef<HTMLDivElement>(null)

const tester = (
<div ref={refTesterContainer} style={{ width: 100, height: 100 }}>
<div ref={refTesterContainer} style={{ position: 'fixed', left: -100, top: -100, width: 100, height: 100 }}>
<div ref={refTesterContent} style={{ width: '100%' }}></div>
</div>
)
Expand Down

1 comment on commit 0af5959

@vercel
Copy link

@vercel vercel bot commented on 0af5959 Nov 3, 2023

Choose a reason for hiding this comment

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

Please sign in to comment.