Open pradhan-v opened 4 years ago
Hi @pradhan-v,
Indeed: that doesn't look very nice. The problem here is that the first row is too big: since the cells on the right are increasing the size of the cell on the left (the one with rowspan) and since the first row is now too big to be drawn on one page it doesn't render correctly.
The question is: what would be a correct rendering? We would need to somehow split the cell on the left over the page border. But there is no concept of cell splitting in easytable.
The "fix" will most probably be that an exception will be thrown in such cases as is already if a single cell is too big.
Anyway: You could work around by using regular cells on the left side that have no borders in between i.e. setting border width to 0 for bottom/top borders.
Hope this helps, Stefan
Hi @vandeseer
Throwing an exception also would leave the rowSpan feature unusable :(. May be draw the cell with the height set to the table height (endY?). Carry over the remaining height to the next page ?
Setting the top/bottom border widths to 0 does the trick. But, it leaves "holes" at the bottom of the table when the "row spanned" cells span across multiple pages. This is okay, for now.
Thanks. Pradhan.
The table renders fine when using small strings in the cells. But, when the data in the cells are large...
Please execute the following code to see the issue.