From 08bc171a72fc44d7a33927ddee2289ef592b37e5 Mon Sep 17 00:00:00 2001 From: ww-rm Date: Sat, 5 Apr 2025 10:38:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=86=E8=BE=A8=E7=8E=87?= =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=97=B6=E7=88=B6=E5=AE=B9=E5=99=A8=E5=B0=BA?= =?UTF-8?q?=E5=AF=B8=E8=8E=B7=E5=8F=96=E9=94=99=E8=AF=AFbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SpineViewer/Controls/SpinePreviewer.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SpineViewer/Controls/SpinePreviewer.cs b/SpineViewer/Controls/SpinePreviewer.cs index 0205aa9..3e75a92 100644 --- a/SpineViewer/Controls/SpinePreviewer.cs +++ b/SpineViewer/Controls/SpinePreviewer.cs @@ -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;