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