Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] allow viewport being constrained by root element #167

Open
stefanprobst opened this issue Sep 25, 2023 · 0 comments
Open

[feature] allow viewport being constrained by root element #167

stefanprobst opened this issue Sep 25, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@stefanprobst
Copy link

when passing in a root element via params, windows are appended to that element (as opposed to document.body), but the viewport constraining window movement is still derived from document.documentElement (see here)

it would be cool to (optionally) allow constraining window movement to the boundaries of the passed in root element (which would also require setting position: absolute on .winbox instead of position: fixed).

thanks!

@ts-thomas ts-thomas added the enhancement New feature or request label Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants