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

Image Cell not maintaining full width due to long adjacent Text Cell #110

Open
jfeust opened this issue Jan 1, 2019 · 0 comments
Open

Comments

@jfeust
Copy link

jfeust commented Jan 1, 2019

We want the left image column to be dynamic based on image size so we can't hard-code the width. The problem is, if we have long text content in the cell to the right of the image cell, it shrinks the image cell to smaller than the image size.

Prawn::Document.generate("hello.pdf") do
    long_text_string = "Test Copy " * 100
    table([[{image: open("https://www.placehold.it/200x200.jpg")}, long_text_string]])
end

Results In:
screen shot 2019-01-01 at 3 12 17 pm

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

1 participant