fixed a bug of imageviewer
This commit is contained in:
1 parent
faed201a2c
commit
d5218ee84a
3 files changed
+12
-7
No files matched your search
@@ -479,6 +479,10 @@ namespace HandyControl.Controls
|
||||
{
|
||||
ImageScale = ActualHeight / height;
|
||||
}
|
||||
else
|
||||
{
|
||||
ImageScale = 1;
|
||||
}
|
||||
|
||||
ImageMargin = new Thickness((ActualWidth - ImageWidth) / 2, (ActualHeight - ImageHeight) / 2, 0, 0);
|
||||
|
||||
|
||||
Reference in new issue
Block a user