fix grid leaking out of card

This commit is contained in:
f43nd1r 2019-12-07 02:06:57 +01:00
parent 5dc8b19912
commit 2fc60efbca

View file

@ -96,8 +96,8 @@ public class AdminTab extends AppTab<Div> {
protected void init(App app) {
layout.removeAll();
MyGrid<Version> versionGrid = new MyGrid<>(getDataService().getVersionProvider(app));
versionGrid.setHeightToRows();
versionGrid.setMaxHeight(100, HasSize.Unit.PERCENTAGE);
versionGrid.setMinHeight(280, HasSize.Unit.PIXEL);
versionGrid.setHeight(100, HasSize.Unit.PERCENTAGE);
versionGrid.addColumn(Version::getCode, QVersion.version.code, Messages.VERSION_CODE).setFlexGrow(1);
versionGrid.addColumn(Version::getName, QVersion.version.name, Messages.VERSION).setFlexGrow(1);
versionGrid.addColumn(new IconRenderer<>(v -> new Icon(v.getMappings() != null ? VaadinIcon.CHECK : VaadinIcon.CLOSE), v -> ""), QVersion.version.mappings.isNotNull(), Messages.PROGUARD_MAPPINGS);