* UIForm: 修复一处设置错误
This commit is contained in:
parent
ce8c3f8f89
commit
ef01df366f
Binary file not shown.
@ -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);
|
||||||
|
|
||||||
|
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user