prawn icon indicating copy to clipboard operation
prawn copied to clipboard

Bounding box depth not constrained by the dimensions of its member bounding boxes

Open roscom opened this issue 5 years ago • 1 comments

Prawn version 2.3.0

I have a situation with a bounding_box of a given width, which contains a number of other bounding_box(es) arranged horizontally, each with different depths. The depth of the containing bounding box seems to assume the depth of the last contained bounding_box emitted. Which is fine, except if the last contained bounding_box has a depth less than any of the other contained bounding_box(es).

roscom avatar Sep 23 '20 02:09 roscom

@roscom I know it's been a while, but any chance you could provide a code snippet to demonstrate the issue?

petergoldstein avatar Feb 14 '22 18:02 petergoldstein

This is not mentioned in the documentation but this is how it's currently implemented.

A workaround would be to manually track height of your actual bounding boxes and then adding an empty bounding box with the maximum height of those other boxes.


Changing this behaviour seems like a big breaking change. I'm adding it on my list of possible big features and will think about it but for now I'm closing this issue.

pointlessone avatar Jan 16 '24 13:01 pointlessone