NavigationMenu
NavigationMenu copied to clipboard
Change itemCellHeight causes scroll issues.
Steps to Reproduce: -> Add enough items so that it is larger than the size of the screen. -> Change itemCellHeight to something lesser than 44.0f. Let's say 30.0f -> Run App, try scrolling. I does not scroll.
I tried some stuff here. If you look at the - (void) addFooter
inside SIMenuTable.m
You'll see this:
- (void)addFooter
{
UIView *footer = [[UIView alloc] initWithFrame:CGRectMake(0, 0, [SIMenuConfiguration menuWidth], self.table.bounds.size.height - (self.items.count * [SIMenuConfiguration itemCellHeight]))];
self.table.tableFooterView = footer;
UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(onBackgroundTap:)];
[footer addGestureRecognizer:tap];
}
Playing around the height of the footer view fixes it. But I am not sure what would be the right value. I leave that to you.