Coder Social home page Coder Social logo

Comments (8)

mtrubnikov avatar mtrubnikov commented on June 17, 2024

Yeah, that would be great! :)

from gmgridview.

rickytan avatar rickytan commented on June 17, 2024

bug exists in horizontal paging when the centerGrid is set to NO.
I won't be able to scroll to the last page fully.
In fact, this was caused by contentSize computing.

from gmgridview.

gmoledina avatar gmoledina commented on June 17, 2024

@bobbypage I'm not sure I understand what's need to be done in order to achieve the desired result. Doesn't the grid already support this ?

@rickytan are you still experiencing the bug ?

from gmgridview.

rickytan avatar rickytan commented on June 17, 2024

No, I have fixed that. @gmoledina .

Modify the code of the implementation of the method -(void)rebaseWithItemCount:(NSInteger)count insideOfBounds:(CGRect)bounds of Horizontal Paged Strategy in GMGridViewLayouStrategies.m, change the last line which compute the _contentSize to:

_contentSize = CGSizeMake( self.gridBounds.size.width * self.numberOfPages, onePageSize.height );

from gmgridview.

gmoledina avatar gmoledina commented on June 17, 2024

@rickytan are you using the latest code version ? I think this was fixed a few weeks ago. The code has changed and _contentSize isn't set in the rebase method directly.

from gmgridview.

rickytan avatar rickytan commented on June 17, 2024

I used the code over a month a ago, so I faced the problem.

And thanks for your hard working on this component, it's really nice!

from gmgridview.

bobbypage avatar bobbypage commented on June 17, 2024

@gmoledina I don't think that the grid view supports this right now. I could get it set up to show one full page at a time, but could didn't figure out on how to show the previews on the left and right of the view. If this is already implemented it would be great to add it as a layout strategy and include a demo as this is a very common task with UIScrollView.

BTW, GMGridView rocks, it works really well and has saved me a lot of time. Thanks!

from gmgridview.

Maverick1st avatar Maverick1st commented on June 17, 2024

I am also trying to get the preview for the case, that a page size should be smaller than the bounds of the gridview.

Unfortunately i always get a gap between pages, when the gridview for example is half a row larger than the size of the pages i want to slide through.

I tried reducing the pagesize, but that did only result in a white gap.

I thought i must set the page-size in rectForPoint: but that method is only called once and seems to have no further influence.

I would really be glad, if someone could push me in the right direction.
It shouldn't be so hard to make the displayed content larger than the page-size, but somehow I'm to blind to see it :(

from gmgridview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.