diff --git a/uppsrc/CtrlLib/CtrlLib.usc b/uppsrc/CtrlLib/CtrlLib.usc index b9503c617..aa44acf95 100644 --- a/uppsrc/CtrlLib/CtrlLib.usc +++ b/uppsrc/CtrlLib/CtrlLib.usc @@ -193,7 +193,7 @@ ctrl Label { group "Static"; GetMinSize() { return XMinSize(); } - GetStdSize() { sz = GetMinSize(); sz.cx *= 5; return sz; } + GetStdSize() { sz = GetMinSize(); sz.cy += 6; sz.cx *= 5; return sz; } >TextCtrl; diff --git a/uppsrc/ide/LayDes/property.cpp b/uppsrc/ide/LayDes/property.cpp index 1ec17831b..a5321b80c 100644 --- a/uppsrc/ide/LayDes/property.cpp +++ b/uppsrc/ide/LayDes/property.cpp @@ -6,8 +6,8 @@ void ItemProperty::Paint(Draw& w) w.DrawRect(sz, SColorLtFace); w.DrawRect(0, GetHeight() - 1, sz.cx, 1, SColorText); w.DrawText(2, - (EditField::GetStdHeight() + 6 - GetTextSize(name, LayFont()).cy) / 2, name, - GetData() == defval ? LayFont() : LayFont().Bold()); + (EditField::GetStdHeight() + 6 - GetTextSize(name, StdFont()).cy) / 2, name, + GetData() == defval ? StdFont()() : StdFont().Bold()); } int ItemProperty::GetHeight() const