Table generated column issue

Hello!.

I’m experiencing an odd issue with a generated column in a table. Basically, when I return a String from a Column Generator, sometimes the table renders with a big empty space at the bottom, as shown in attached image.
Many phrases like “SHORT STRING ASDF”, “cadena CORTA”, “short string asdf”, “3011425418”, etc, show a big empty space at the bottom, and the larger the container, the greater the empty space.
But with some others like “short string qw”, “no value” it renders normally.

I couldn’t reproduce this situation in another project, though.
I’ve tested this issue in versions 7.1.13 and 7.1.9.

The table component is created and configure like this:

        Table table = new Table("Testing");
        table.setSelectable(true);
        table.setHeight("100%");
        table.setWidth("100%");
        table.setNullSelectionAllowed(true);
        table.setColumnReorderingAllowed(true);
        table.setColumnCollapsingAllowed(true);
        table.setFooterVisible(true);
        table.setImmediate(true);
         table.addGeneratedColumn("Button", new ColumnGenerator() {

            @Override
            public Object generateCell(Table source, Object itemId,
                    Object columnId) {
                return new Button("Click me");
            }
        });
        
        table.addGeneratedColumn("label", new ColumnGenerator() {

            @Override
            public Object generateCell(Table source, Object itemId,
                    Object columnId) {
                return new Label("[49]
");
            }
        });
        
        for(int i = 0; i < 5; i ++){
            table.addGeneratedColumn("Gen column" + i, new ColumnGenerator() {

                @Override
                public Object generateCell(Table source, Object itemId,
                        Object columnId) {
                    return "short string asdfd LONGER";
                }
            });
        }

        table.setContainerDataSource(container);
        table.setColumnFooter("Button", "size");
        table.setColumnFooter("label", "" + container.size());

Wrapping the string in a Label in the generator doesn’t solve the issue, but reduces the empty space.

If I try something like the code above in a new project, the table renders normally.
How can I detect what is the problem?

I appreciate any help.

PD: Setting a fixed height to the Label with value 45px, seems to solve the issue, the empty space disappears.
13541.png
13542.png
13543.png

The first thing I would look for is the possibility that you are running an old version of the widgetset or theme which are conflicting. This is common when you are changing Vaadin versions. You can check this by appending &debug to your application URL and check the info tab in the debug window.

Hi. I’ll check, but I’ve already re-compiled the widgetset and theme after moving to version 7.1.13.

No. After compiling the widgetset again I get in the console:

Linking into D:\Workspace\project\WebContent\VAADIN\widgetsets\MyWidgetset; In debug mode on the browser:

Client engine version 7.1.13 Server engine version 7.1.13 Theme version 7.1.13 Widget set MyWidgetset Theme: myTheme So, I suppose it is using the most recent version of the widgetset. But the problem remains. I have to return a Label from the column generator with a height set in 45px.
I attached an image showing the table with the label set at a fixed height, the four columns shown are generated by a columngenerator.

13549.png