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

@graph-paper/core: create various overflow options for placeElement #43

Open
hamilton opened this issue Jun 23, 2020 · 0 comments
Open

Comments

@hamilton
Copy link
Collaborator

hamilton commented Jun 23, 2020

As it is now, the placeElement utility function has a few limitations for children that are potentially taller than the window height. We should add some options to accommodate the case where it might be taller.

A good first step would be to enable something like an overflow option for the utility. overflow would by default have flip (the current functionality), which if the floating element exceeds the window bounds, we flip the alignment or location so that it fits.

We need something like overflow: shift for some internal work, which would adjust the floating element so that it does not exceed the window edge.

overflow

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

No branches or pull requests

1 participant