BACKGROUND shifted down in table cells

11 views
Skip to first unread message

Brian Carey

unread,
Jun 25, 2022, 10:17:51 AMJun 25
to reportlab-users
Hi,

I'm trying to add backgrounds to certain cells in a table. I do it by putting these lines in the TableStyle

```
# set font size and color for third and fourth columns
('FONTSIZE',(2,1),(3,-1),12),
('TEXTCOLOR',(2,1),(3,-1),colors.black),
('BACKGROUND',(2,1),(3,-1),bcolor),
```
Which kind of works but the BACKGROUND is shifted down in the table when it is displayed. The background starts from the middle of the cell and goes to the middle of the cell below it.

I don't think I can post a screenshot unfortunately. 

If anyone has any ideas about this I'd appreciate it.

Reply all
Reply to author
Forward
0 new messages