fix 'align' ui property reading
This commit is contained in:
parent
47cdc02137
commit
c8ba5b5dbb
@ -152,8 +152,9 @@ static void read_uinode(
|
|||||||
if (element.has("pressed-color")) {
|
if (element.has("pressed-color")) {
|
||||||
node.setPressedColor(element.attr("pressed-color").asColor());
|
node.setPressedColor(element.attr("pressed-color").asColor());
|
||||||
}
|
}
|
||||||
const auto& alignName = element.attr("align", "").getText();
|
node.setAlign(
|
||||||
node.setAlign(align_from_string(alignName, node.getAlign()));
|
align_from_string(element.attr("align", "").getText(), node.getAlign())
|
||||||
|
);
|
||||||
|
|
||||||
if (element.has("gravity")) {
|
if (element.has("gravity")) {
|
||||||
node.setGravity(gravity_from_string(element.attr("gravity").getText()));
|
node.setGravity(gravity_from_string(element.attr("gravity").getText()));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user