NavigationMenu icon indicating copy to clipboard operation
NavigationMenu copied to clipboard

Change itemCellHeight causes scroll issues.

Open steventsng opened this issue 11 years ago • 1 comments

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.

steventsng avatar Feb 14 '14 20:02 steventsng

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.

steventsng avatar Feb 14 '14 20:02 steventsng