Skip to content
This repository has been archived by the owner on Apr 8, 2020. It is now read-only.

Change itemCellHeight causes scroll issues. #11

Open
steventsng opened this issue Feb 14, 2014 · 1 comment
Open

Change itemCellHeight causes scroll issues. #11

steventsng opened this issue Feb 14, 2014 · 1 comment

Comments

@steventsng
Copy link

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
Copy link
Author

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant