Auto add blank columns we adding rows

This commit is contained in:
TheStonedTurtle
2019-05-01 00:17:58 -07:00
parent 38e921c04c
commit e68e402779

View File

@@ -136,6 +136,11 @@ public class TableComponent implements LayoutableRenderableEntity
public void addRow(@Nonnull final String... cells)
{
while (cells.length > columns.size())
{
columns.add(TableElement.builder().build());
}
final TableElement[] elements = new TableElement[cells.length];
for (int i = 0; i < cells.length; i++)
{