revert the layoutComponent codes to prevent the demos crush.

This commit is contained in:
yusheng.lu 2014-12-30 10:47:00 +08:00
parent e5961047aa
commit 9a0f302370
1 changed files with 1 additions and 1 deletions

View File

@ -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();