You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
However, when I removed the margin, it displayed normally:
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).
The text was updated successfully, but these errors were encountered:
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
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.
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:
However, when I removed the margin, it displayed normally:
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).
The text was updated successfully, but these errors were encountered: