godot icon indicating copy to clipboard operation
godot copied to clipboard

Rich text table cell padding issue

Open lupuchard opened this issue 1 week ago • 0 comments

Tested versions

Reproducible in 4.4.dev6 and 4.4.rc1, haven't tested other versions.

System information

Godot v4.4.rc1 - Linux Mint 22.1 (Xia) on X11 - X11 display driver, Multi-window, 2 monitors - Vulkan (Forward+) - dedicated AMD Radeon RX 6800 XT (RADV NAVI21) - AMD Ryzen 5 3600 6-Core Processor (12 threads)

Issue description

If a table cell with top padding but no bottom padding is above a cell with no top padding, then instead of the first cell being padded above, there's a gap between the cells:

Image

In this example I would expect the whole table to be padded at the border with no padding between the cells.

Steps to reproduce

Enable BBCode on a RichTextLabel and populate it with this:

[table=1]
[cell bg=black padding=9,9,9,0]Padding of 9, 9, 9, 0[/cell]
[cell bg=black padding=9,0,9,0]Padding of 9, 0, 9, 0[/cell]
[cell bg=black padding=9,0,9,0]Padding of 9, 0, 9, 0[/cell]
[cell bg=black padding=9,0,9,9]Padding of 9, 0, 9, 9[/cell]
[/table]

Minimal reproduction project (MRP)

test-focus.zip

lupuchard avatar Feb 23 '25 23:02 lupuchard