mirror of https://github.com/axmolengine/axmol.git
revert the layoutComponent codes to prevent the demos crush.
This commit is contained in:
parent
e5961047aa
commit
9a0f302370
|
@ -836,9 +836,9 @@ namespace cocostudio
|
|||
void WidgetReader::setLayoutComponentPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* nodeOptions)
|
||||
{
|
||||
auto layoutComponentTable = ((WidgetOptions*)nodeOptions)->layoutComponent();
|
||||
if (!layoutComponentTable) return;
|
||||
|
||||
auto layoutComponent = ui::LayoutComponent::bindLayoutComponent(node);
|
||||
if (!layoutComponentTable) return;
|
||||
|
||||
bool positionXPercentEnabled = layoutComponentTable->positionXPercentEnabled();
|
||||
bool positionYPercentEnabled = layoutComponentTable->positionYPercentEnabled();
|
||||
|
|
Loading…
Reference in New Issue