修复分辨率调整时父容器尺寸获取错误bug
This commit is contained in:
@@ -97,8 +97,8 @@ namespace SpineViewer.Controls
|
||||
if (value.Width <= 0) value.Width = 100;
|
||||
if (value.Height <= 0) value.Height = 100;
|
||||
|
||||
float parentX = Width;
|
||||
float parentY = Height;
|
||||
float parentX = panel.Parent.Width;
|
||||
float parentY = panel.Parent.Height;
|
||||
float sizeX = value.Width;
|
||||
float sizeY = value.Height;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user