You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first line uses TCPDF's native function to get the height of the multi line string and sets the $mbh variable to later set both cells to the same height.
The $DColW0 and $TColW0 variables are predetermined and set column widths.
My problem is the result looks like this,
I tried using the title column's width in the x value of the data cell, but that just shifts the content out of the column.
The content looks to be in the right place the border for the data cell is just drawn in the wrong spot. Is there a setting or something I'm missing when it comes to MultiCell() borders? Any help/suggestions much appreciated.
Turning fill on paints over all previously drawn borders for that row with the exception of the border for the last cell. The content of both cells is still in the expected position, the border is drawn to the expected size, but is drawn in the wrong position.
The text was updated successfully, but these errors were encountered:
Copied from tecnickcom/tc-lib-pdf#37
I have this block that creates a set of TCPDF
MultiCell()
s in a multicolumn pdf.$mbh
variable to later set both cells to the same height.$DColW0
and$TColW0
variables are predetermined and set column widths.My problem is the result looks like this,
I tried using the title column's width in the
x
value of the data cell, but that just shifts the content out of the column.The content looks to be in the right place the border for the data cell is just drawn in the wrong spot. Is there a setting or something I'm missing when it comes to
MultiCell()
borders? Any help/suggestions much appreciated.Updating the block to make use of SetX
Shifts the content independent of where the border is drawn.
Using the x specification inside of
MultiCell()
Again content shifts, border is drawn over previous cell.
MultiCell() Documentation.
Result with cell fill turned on.
Turning fill on paints over all previously drawn borders for that row with the exception of the border for the last cell. The content of both cells is still in the expected position, the border is drawn to the expected size, but is drawn in the wrong position.
The text was updated successfully, but these errors were encountered: