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

Overlays should support vertical and horizontal alignment #151

Open
ecton opened this issue May 10, 2024 · 0 comments
Open

Overlays should support vertical and horizontal alignment #151

ecton opened this issue May 10, 2024 · 0 comments

Comments

@ecton
Copy link
Member

ecton commented May 10, 2024

The Menu widget currently works ok, but when a menu opens at the edge of the screen, the OverlayLayer shifts the widget inward, covering the parent menu. When using relative directional placement, we do intersection detection, preventing this from happening when possible.

When using the at positioning, we skip doing any intersection detection because we don't have any fallback strategies. Ideally, we could support a "align this to the right or left, but use this y coordinate" type positioning. When thinking of this and how toasts might be positioned, this seems to make a lot of sense.

I think the current approach to Direction + Relative or Absolute isn't quite the correct combination, and there might be a better way to express these different positioning strategies.

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