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

Panels must be created before its descendents #13

Open
BadMagic100 opened this issue Nov 21, 2022 · 0 comments
Open

Panels must be created before its descendents #13

BadMagic100 opened this issue Nov 21, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@BadMagic100
Copy link
Owner

Describe the bug
If a Panel is created after any of its ancestors, the background of the panel will appear in front of (and likely obscure) those elements.

To Reproduce
Minimal repro:

LayoutRoot layout = new(true);
TextObject t = new(layout) { Text = "You can't see me", ContentColor = Colors.black };
Panel p = new(layout, BuiltInSprites.CreateBox()) { Child = t };

Expected behavior
Elements of a Panel should appear in front of the background regardless of creation order.

Additional context
This likely needs some flavor of explicit z-ordering.

@BadMagic100 BadMagic100 added the bug Something isn't working label Nov 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant