AsyncDisplayKit some Waring
Width calculation error after setting flexBasis attribute
I don’t know if I’m dealing with this issue
When I set flexWrap using ASStackLayoutSpec I found this problem. In the end I found out that because of the calculation, the width was out of range. This main problem appears in the following code
ASInternalHelpers ASCeilPixelValue
CGFloat ASCeilPixelValue(CGFloat f)
{
CGFloat scale = ASScreenScale();
return ceil(f * scale) / scale;
}
For example
in iPhoneX, the width is 375 and flexBasis is set to 0.5. The scale is 3.
The result is 186.666666666666....
Caused the width to exceed 375
Reproduce this problem
AsyncCeilWidthError
AsyncDisplayKit some Waring
Width calculation error after setting flexBasis attribute
I don’t know if I’m dealing with this issue
When I set flexWrap using ASStackLayoutSpec I found this problem. In the end I found out that because of the calculation, the width was out of range. This main problem appears in the following code
ASInternalHelpers ASCeilPixelValue
For example
in iPhoneX, the width is 375 and flexBasis is set to 0.5. The scale is 3.
The result is 186.666666666666....
Caused the width to exceed 375
Reproduce this problem
AsyncCeilWidthError