Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
* [Core] Fix "flex-grow" problem on text
Browse files Browse the repository at this point in the history
  • Loading branch information
YorkShen committed Jul 19, 2018
1 parent 71cf571 commit 077f16f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions weex_core/Source/core/layout/layout.cpp
Expand Up @@ -467,6 +467,11 @@ namespace WeexCore {
if (isMainAxisHorizontal(this)) {
child->setWidthMeasureMode(kExactly);
child->setLayoutWidth(childMainSize);
//TODO Fix https://jsplayground.taobao.org/raxplayground/97efee70-775f-45a6-b07d-d84c8d1b4387
//TODO This is just a temporary fix, we need to make things beauty and clean.
if(child->heightMeasureMode == kUnspecified && child->measureFunc != nullptr && child->getChildCount() == 0){
child->setLayoutHeight(NAN);
}
} else {
child->setHeightMeasureMode(kExactly);
child->setLayoutHeight(childMainSize);
Expand Down

0 comments on commit 077f16f

Please sign in to comment.