grid.setHeightFull doesnt work

Why ? i have VerticalLayout and setHeightFull

@RequiredArgsConstructor
public class OfferSettingsListGui extends VerticalLayout implements AfterNavigationObserver {
    private final OfferService offerService;
    Grid<OfferSettings> offerSettingsGrid = new Grid<>(OfferSettings.class,false);
    
    }
    @Override
    public void afterNavigation(AfterNavigationEvent afterNavigationEvent) {
        configureGrid();
        add(offerSettingsGrid);
    }
    public void configureGrid(){
        offerSettingsGrid.addColumn(OfferSettings::getPerfectLocation).setHeader("Perfect Location").setKey("location");
        offerSettingsGrid.addColumn(OfferSettings::getPriceFrom).setHeader("Price from").setKey("pricefrom");
        offerSettingsGrid.addColumn(OfferSettings::getPriceTo).setHeader("Price to").setKey("priceto");
        offerSettingsGrid.addColumn(OfferSettings::getCity).setHeader("City").setKey("city");
        offerSettingsGrid.addColumn(TemplateRenderer.<OfferSettings>of("<a href='offer/[[item.id]]'>[[item.id]]</a>")
                .withProperty("id",OfferSettings::getId)
        ).setHeader("Link to offers").setWidth("15px").setKey("link");
        offerSettingsGrid.setItems(offerService.findAllOfferSettings());
        offerSettingsGrid.setMultiSort(true);
        offerSettingsGrid.setSortableColumns("pricefrom","priceto","city");
        offerSettingsGrid.setHeightFull();
    }
}```

I tryy to setHeight(100f,Unit.PERCENTAGE)

And where did you set the height for the vertical layout?

last line

offerSettingsGrid.setHeightFull();

That’s the grid, not the layout.

Your layout has no height, so when you set 100% height on the Grid, you’re setting 100% of nothing, which is nothing.