修复分辨率调整时父容器尺寸获取错误bug

This commit is contained in:
ww-rm
2025-04-05 10:38:17 +08:00
parent 7372f5fe08
commit 08bc171a72

View File

@@ -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;