AvaloniaUI / AvaloniaVS

Visual Studio Extension for Avalonia
MIT License
412 stars 77 forks source link

fix(Previewer): `Fit All` using ViewportSize insteand of ActualWidth/ActualHeight #444

Closed workgroupengineering closed 3 months ago

workgroupengineering commented 5 months ago

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.