DescriptionFix for ASSERTION FAILURE contentSize >=0
The codeflow here is as follows:
adjustChildSizeForMinAndMax() -> computeMainAxisExtentForChild() ->
computeLogicalWidthUsing() -> computeIntrinsicLogicalWidthUsing() ->
computeIntrinsicLogicalWidths()
In the final function we set the minPreferredLogicalWidth as
minPreferredLogicalWidth = child->minPreferredLogicalWidth()
Here, minPreferredLogicalWidth() returns a negative value, so
minPreferredLogicalWidth is negative and we add this negative number to
minLogicalWidth which does not make sense and makes minLogicalWidth negative.
Hence, adding a check here not to add negative values (as they do not make
sense). This fixes the assertion failure.
BUG=492678
Patch Set 1 #Patch Set 2 : Added testcase #
Total comments: 3
Messages
Total messages: 4 (1 generated)
|