File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
IBPCollectionViewCompositionalLayout Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -294,11 +294,11 @@ - (void)prepareLayout {
294294 decorationViewFrame.origin = sectionOrigin;
295295
296296 if (self.scrollDirection == UICollectionViewScrollDirectionVertical) {
297- decorationViewFrame.size .width += CGRectGetWidth (contentFrame) + layoutSection. contentInsets . leading ;
298- decorationViewFrame.size .height = CGRectGetMaxY (contentFrame) - sectionOrigin.y + layoutSection.contentInsets .top ;
297+ decorationViewFrame.size .width += CGRectGetWidth (contentFrame);
298+ decorationViewFrame.size .height = CGRectGetMaxY (contentFrame) - sectionOrigin.y + layoutSection.contentInsets .bottom ;
299299 }
300300 if (self.scrollDirection == UICollectionViewScrollDirectionHorizontal) {
301- decorationViewFrame.size .width = CGRectGetMaxX (contentFrame) - sectionOrigin.x ;
301+ decorationViewFrame.size .width = CGRectGetMaxX (contentFrame) - sectionOrigin.x + layoutSection. contentInsets . trailing ;
302302 decorationViewFrame.size .height += CGRectGetHeight (contentFrame);
303303 }
304304
You can’t perform that action at this time.
0 commit comments