mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
default multiline labels valign set to 'top' + content panel width increased
This commit is contained in:
parent
4dc2c4701d
commit
8b1c102cfe
5 changed files with 17 additions and 25 deletions
|
|
@ -222,6 +222,9 @@ static std::shared_ptr<UINode> readLabel(UiXmlReader& reader, xml::xmlelement el
|
|||
}
|
||||
if (element->has("multiline")) {
|
||||
label->setMultiline(element->attr("multiline").asBool());
|
||||
if (!element->has("valign")) {
|
||||
label->setVerticalAlign(Align::top);
|
||||
}
|
||||
}
|
||||
if (element->has("text-wrap")) {
|
||||
label->setTextWrapping(element->attr("text-wrap").asBool());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue