* UIForm: 修复一处设置错误

This commit is contained in:
Sunny 2022-04-19 10:34:31 +08:00
parent ce8c3f8f89
commit ef01df366f
3 changed files with 1 additions and 2 deletions

Binary file not shown.

View File

@ -90,6 +90,7 @@ namespace Sunny.UI
public void SetDPIScale() public void SetDPIScale()
{ {
if (DesignMode) return;
if (!IsScaled && UIStyles.DPIScale) if (!IsScaled && UIStyles.DPIScale)
{ {
this.SetDPIScaleFont(); this.SetDPIScaleFont();
@ -1270,7 +1271,6 @@ namespace Sunny.UI
public void SetStyle(UIStyle style) public void SetStyle(UIStyle style)
{ {
if (DesignMode) return;
this.SuspendLayout(); this.SuspendLayout();
UIStyleHelper.SetChildUIStyle(this, style); UIStyleHelper.SetChildUIStyle(this, style);

View File

@ -111,7 +111,6 @@ namespace Sunny.UI
public void SetDPIScale() public void SetDPIScale()
{ {
if (DesignMode) return; if (DesignMode) return;
if (!IsScaled) if (!IsScaled)
{ {
this.SetDPIScaleFont(); this.SetDPIScaleFont();