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

Only apply SizeToContent workaround when necessary #2116

Merged
merged 1 commit into from
Sep 14, 2015
Merged

Only apply SizeToContent workaround when necessary #2116

merged 1 commit into from
Sep 14, 2015

Conversation

tgjones
Copy link
Contributor

@tgjones tgjones commented Sep 8, 2015

The existing SizeToContent workaround is only necessary when ResizeMode != NoResize. The workaround solves the problem of black bars appearing at the right and bottom edges of the window. But when ResizeMode == NoResize, no such black bars appear.

The reason for this pull request is that the SizeToContent workaround turns out to be a problem in some SizeToContent=WidthAndHeight edge cases. Specifically, when the size of the content changes as the window is loading, due to code in SourceInitialized and LayoutUpdated in our app. Unfortunately the repro is pretty complicated, and I haven't been able to create a minimal repro.

punker76 added a commit that referenced this pull request Sep 14, 2015
Only apply SizeToContent workaround when necessary
@punker76 punker76 merged commit fd8a793 into MahApps:master Sep 14, 2015
@tgjones tgjones deleted the sizetocontent branch September 21, 2015 03:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants