Open garrettmoon opened 7 years ago
From @nguyenhuy on March 29, 2017 14:6
The fixed constrainedSize is for parentNode
, and the ratio spec is applied for the childNode
of that node. I'd imagine the childNode has a size of {100, 25}
, no?
From @xilin on March 29, 2017 16:0
@nguyenhuy Nope. The childNode is in blue color and see the snapshot
From @nguyenhuy on March 29, 2017 16:6
Oh yeah, you're entirely right. The ratio spec got a fixed size range of {100, 100}
! We should fix that!
Any update on this? How can we try the ASRatioLayoutSpec in the example app?
From @xilin on March 24, 2017 9:30
The sample is located in here.
It seems that the
constrainedSize
is fixed as{min : {100, 100}, max: {100, 100}}
so that theASRatioLayoutSpec
layout cannot produce correct result.Copied from original issue: facebookarchive/AsyncDisplayKit#3216