We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1cb62d commit 3b76f42Copy full SHA for 3b76f42
XBMC Remote/FloatingHeaderFlowLayout.m
@@ -53,6 +53,11 @@ - (NSArray*)layoutAttributesForElementsInRect:(CGRect)rect {
53
CGFloat minY = CGRectGetMinY(attributesFirstItem.frame) - frame.size.height;
54
CGFloat maxY = CGRectGetMaxY(attributesLastItem.frame) - frame.size.height;
55
CGFloat posY = MIN(MAX(offset, minY), maxY);
56
+
57
+ // Workaround: Move up a little to leave no space between floating section header's top and navbar's bottom.
58
+ // Only reason to keep this method implemented instead of simply using sectionHeadersPinToVisibleBounds = YES.
59
+ posY -= 1.0 / UIScreen.mainScreen.scale;
60
61
frame.origin.y = posY;
62
attributes.frame = frame;
63
attributes.zIndex = 1024;
0 commit comments