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(Previewer): Fit All using ViewportSize insteand of ActualWidth/ActualHeight #444

Merged

Conversation

workgroupengineering
Copy link
Contributor

Current behavior

When call Fit All , the extremes of the view are not visible because they are covered by the scrollbars.

Expected behavior

View displayed all.

What PR does

instead of using Previewer ActualWidth/ActualHeight , get the ViewportSize of the ScrollViewer present in the Previewer and add a padding.

@maxkatz6 maxkatz6 requested a review from Takoooooo January 31, 2024 22:37
@maxkatz6 maxkatz6 merged commit f4b12db into AvaloniaUI:master Mar 28, 2024
3 checks passed
@workgroupengineering workgroupengineering deleted the fixes/Previewer/Zoom_Fit branch March 28, 2024 22:35
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