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

Fix lack of vertical scroll for Dialogs #371

Merged
merged 1 commit into from
Jan 3, 2025

Conversation

sn4k3
Copy link
Contributor

@sn4k3 sn4k3 commented Dec 31, 2024

StackPanel uses infinite Width/Height, no content can use scroll when inside StackPanel. This PR uses Grid instead with content as Fill. This resolves the problem and give us vertical scroll when required.

StackPanel is very convenient to use but this problem make it almost a bug rather than a useful control. I tend to avoid it at all cost.

Before VS after:
image

StackPanel uses infinite Width/Height, no content can use scroll when inside StackPanel. This fix uses Grid instead with content as Fill. This resolves the problem and give us vertical scroll when required.

StackPanel is very convenient to use but this problem make it almost a bug rather than a useful control. I tend to avoid it at all cost.
@kikipoulet kikipoulet merged commit 99536dd into kikipoulet:main Jan 3, 2025
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants