Skip to content
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

group was awesome, i miss it #1031

Open
seebs opened this issue Jun 27, 2017 · 3 comments
Open

group was awesome, i miss it #1031

seebs opened this issue Jun 27, 2017 · 3 comments

Comments

@seebs
Copy link

seebs commented Jun 27, 2017

I don't think this is new or surprising, but I actually used the "group" feature in the past, and have been unable to find a usable workaround for the case of "I want all of these objects to bump over to next page if there isn't enough space for them where they are". When I invoke group, I get an error saying that it's been disabled because of corruption. I'm not sure I have time or skill to try to fix such a thing, but I want to be sure it's in the tracker somewhere.

(Alternatively: If there's some other way to achieve the same goals, like a speculative-render to find out what something's bounds would be if you did it, that could serve? But at that point that could be a way to implement group, too.)

@ViktorKopychko
Copy link

Hi, there is a gem https://github.com/ddengler/prawn-grouping, I've never used it but take a look.

@ghost
Copy link

ghost commented Aug 12, 2017

To be honest, it may be better to actually include it as part of prawn directly, while displaying a warning that it is not recommended to use it perhaps.

@ddengler
Copy link

ddengler commented Aug 3, 2018

I just gave the prawn-grouping gem a bit of (much needed) love and released a new version that should be at least easy to install and compatible with the recent prawn version. Let me know if you find any issues.

@seebs your suggestion is basically what the grouping gem does internally

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

No branches or pull requests

3 participants