Skip to content

x-trap.noscroll adds padding to root element #4365

Closed Answered by SimoTod
LaurinStapf asked this question in 5. Bugs
Discussion options

You must be logged in to vote

Ok, I was actually mistaken. The padding is calculated by alpine, not focus trap. You can find the code here:

let scrollbarWidth = window.innerWidth - document.documentElement.clientWidth

In theory, it should be the correct value

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@LaurinStapf
Comment options

@SimoTod
Comment options

Answer selected by LaurinStapf
@LaurinStapf
Comment options

Comment options

You must be logged in to vote
1 reply
@ekwoka
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants