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

Using margin to position a Panel clips/removes the background, border, and some content #400

Open
V414 opened this issue Sep 21, 2023 · 1 comment

Comments

@V414
Copy link

V414 commented Sep 21, 2023

For some reason adding a margin to a HorizontalStackPanel begins to clip or entirely remove the background colour.

For example, I was creating this new panel to sit below another I made, positioning it using margin, and it wouldn't show the background colour at all, only a small slither of the border:

Myra background issue 1
Myra background issue 2

However, when I removed the margin, it displayed normally:
Myra background issue 3
Myra background issue 4

I'm not 100% sure its actually even an issue with just the background, it's almost like the panel position isn't being set correctly, since the child image buttons also didn't move where they should be when the margin was applied (although the label did for some reason).

@V414 V414 changed the title Margin on a Horizontal Stack Panel clips/removes the background Using margin to position a Panel clips/removes the background, border, and some content Sep 21, 2023
@V414
Copy link
Author

V414 commented Sep 21, 2023

Just tested this with a normal Panel instead of just a HorizontalStackPanel with the same results.

The work around is just to use Top = 70; instead of margin, but this still isn't expected behaviour, as surely changing the margin should also shift the background/border/child elements.

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