-
Notifications
You must be signed in to change notification settings - Fork 451
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Horizontal direction seems not to work #2
Comments
Yeah, it's an artifact of how it handles indexing— it counts along each row. For horizontal scrolling I'm not entirely certain what the ideal format would be. Keeping the same thing might not be the best thing, and it would definitely require a change to the way I'm tracking which items are visible (I wouldn't be able to use a range any more, I'd have to use an NSIndexSet). In Kobo we're only using this mode with a single row (in the 'I'm Reading' expose-style overlay), so we don't hit this problem. The ImageDemo I modified here to show off horizontal scrolling does though, which is somewhat annoying. I've just not gotten around to making a decision yet how it ought to be done, or whether there should be a developer setting for it. |
Hey, I'd really like to see the horizontal scrolling work. Is this something that you're going to be putting time into? I might be able to help implement it, but I think I would need to understand the code base a little deeper. I implemented a general solution to this problem that looked somewhat different (arbitrary rects and visibility testing, different layout manager for vert / horiz), but unfortunately it's owned by eBay :( |
I am also trying to implement horizontal scrolling in SINGLE row. But when I run application gives me Vertical scrolling as well, which I don't need. I only required horizontal scrolling in the gridview. Horizontal scrolling working fine, I just need to fix vertical scrolling. Here is my UI setup and code,
//In MyCustomView.m
}
//In GridItemView.m |
I think I found the issue. Issue is in the (void) setContentSize: (CGSize) newSize function. There is a line
It fixes the vertical scrolling issue in Single Row Horizontal gridview. |
What's the status of this issue? Using a range to define visible cells won't work in multi-row horizontal scrolling, NSIndexPath sounds better. Is someone working on this (I am not expert enough to fix it myself)? |
Found a branch with a partial fix. They moved to an index set. https://github.com/marcammann/AQGridView/ So far it seems to work. I am working on the other part, which is to re-layout the indexes into the logical pages. That is to say page 0 should contain indexes 0-19, page 1 20-29, etc… |
Any word on how this is coming? I'd like to use this library for a single row, paged scrolling grid view. It sounds like this would be needed. |
I think I also see that error. I created a grid on the iPad and I always see it when I rotate it several times. |
My AQGridView Horizontal scrolling is not working and get the following error... |
In the ImageDemo example, if you put the following line in the
viewDidLoad
method of theImageDemoViewController
:you get the following error (backtrace here: https://gist.github.com/b87ae0e00ed585cc5fd2):
Additionally, if you reduce the height of the GridView to lets say 200px, you get an
EXC_ARITHMETIC
error (backtrace here: https://gist.github.com/15ffe23f2d2af3ff3921)The text was updated successfully, but these errors were encountered: