Masonry icon indicating copy to clipboard operation
Masonry copied to clipboard

Method `-mas_distributeViewsAlongAxis:withFixedSpacing:leadSpacing:tailSpacing:` is making a fixed width/height quietly. But why?

Open wgy6055 opened this issue 5 years ago • 1 comments

https://github.com/SnapKit/Masonry/blob/8bd77ea92bbe995e14c454f821200b222e5a8804/Masonry/NSArray%2BMASAdditions.m#L54 https://github.com/SnapKit/Masonry/blob/8bd77ea92bbe995e14c454f821200b222e5a8804/Masonry/NSArray%2BMASAdditions.m#L74

Please check this. I don't understand why it is necessary to make views' width/height to be same with previous view. Because this method is intended to make views arranging with fixed spacing rather than item size.

wgy6055 avatar Nov 01 '18 09:11 wgy6055

agree I have the same qusetion , so I copy this function to my work space , and reduce this line to help me solve this question.

kyasever avatar Nov 20 '20 14:11 kyasever