Add a little padding to TreeItem's label

So that it would not stick too close to the icon
This commit is contained in:
Zhao Puming 2016-01-29 11:19:31 +08:00
parent 8e9a52dbfa
commit e9446b2733
1 changed files with 1 additions and 0 deletions

View File

@ -608,6 +608,7 @@ class TreeItemWidget : HorizontalLayout {
_label = new TextWidget("label", _item.text); _label = new TextWidget("label", _item.text);
_label.styleId = STYLE_TREE_ITEM_LABEL; _label.styleId = STYLE_TREE_ITEM_LABEL;
_label.setState(State.Parent); _label.setState(State.Parent);
_label.padding(Rect(5, 0, 0, 0));
_body.addChild(_label); _body.addChild(_label);
// append children // append children
addChild(_tab); addChild(_tab);