Set Element state in Element::create

fix-osga-rotate-wildly
uramer 10 months ago
parent 61d01f3b62
commit 0f60052bb8

@ -278,6 +278,7 @@ namespace LuaUi
mRoot = createWidget(layout(), true, depth); mRoot = createWidget(layout(), true, depth);
mLayer = setLayer(mRoot, layout()); mLayer = setLayer(mRoot, layout());
updateRootCoord(mRoot); updateRootCoord(mRoot);
mState = Created;
} }
} }
@ -304,9 +305,9 @@ namespace LuaUi
} }
mLayer = setLayer(mRoot, layout()); mLayer = setLayer(mRoot, layout());
updateRootCoord(mRoot); updateRootCoord(mRoot);
}
mState = Created; mState = Created;
} }
}
void Element::destroy() void Element::destroy()
{ {

Loading…
Cancel
Save