Re: Squeezing content in block-container

2006-04-25 Thread Jeremias Maerki
This first attempt didn't work out. Sometimes the demerit would still be bigger than the one for the constellation that generated more than one part. However, I found a clean hook-in point in filterActiveNodes() where I can make sure that the "squeezing solution" is favored over the breaking one. T

Re: Squeezing content in block-container

2006-04-20 Thread Jeremias Maerki
Sure. One of my client has a fixed-size box (defined by a block-container) whose contents should distribute vertically in the available vertical area. The amount of content in that box can differ from document to document. The best solution I see (besides the proprietary "fill" on display-align and

Re: Squeezing content in block-container

2006-04-20 Thread Chris Bowditch
Jeremias Maerki wrote: I've done a local hack that tries to squeeze all content of a block-container into the available area if that's possible based on the available "shrink". I've done this by modifying PageBreakingAlgorithm.computeDemerits(): Can you take a step back and say what business pr