ide: LayDes cosmetics #1255

git-svn-id: svn://ultimatepp.org/upp/trunk@8900 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2015-09-06 07:40:24 +00:00
parent 604176c53f
commit 91dc2c606b
2 changed files with 3 additions and 3 deletions

View file

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

View file

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