I think the bug here in 2 page spread mode is that the columnWidth already accounts for the gap between columns (pages) and so only the leftPadding should be used in calculating max-width on left hand side pages while rightPadding alone should be used in calculating max-width of right hand side pages but that routine does not seem to know which side of the two page spread is being used.
But this is just a guess. I would need to run your test case in a browser with the reader software and check out the values of the padding via the java console to try to really understand what is going on here.
That said perhaps adding back in the gap to the columnWidth in the calculation will make it work correctly without the need to zero it out.
Last edited by KevinH; 06-12-2021 at 01:31 PM.
|