fixed a bug of CoverView

This commit is contained in:
NaBian committed 2019-02-12 10:23:20 +08:00
1 parent ab6e2efe21
commit b179d90aa1
6 files changed
+12 -11

No files matched your search

@@ -182,6 +182,7 @@ namespace HandyControl.Controls
_viewContent.ManualHeight = 0;
if (_viewContent.Content is FrameworkElement element)
{
element.VerticalAlignment = VerticalAlignment.Top;
element.Arrange(new Rect(new Size(double.MaxValue, double.MaxValue)));
_viewContent.ManualHeight = element.ActualHeight;
}