fixed a bug of imageviewer

This commit is contained in:
NaBian committed 2018-11-16 18:12:35 +08:00
1 parent faed201a2c
commit d5218ee84a
3 files changed
+12 -7

No files matched your search

+4
View File
@@ -479,6 +479,10 @@ namespace HandyControl.Controls
{
ImageScale = ActualHeight / height;
}
else
{
ImageScale = 1;
}
ImageMargin = new Thickness((ActualWidth - ImageWidth) / 2, (ActualHeight - ImageHeight) / 2, 0, 0);