Is the following a known bug?
If I try to add the following component to a tabsheet, the CustomComponent content not showed in the browser:
public class AcpManagementComponent extends CustomComponent {
private static final long serialVersionUID = 1L;
private Layout mainLayout;
public AcpManagementComponent() {
super();
setSizeFull();
//mainLayout = buildMainLayout();
mainLayout = new VerticalLayout();
mainLayout.addComponent(new Label("Text"));
setCompositionRoot(mainLayout); //addComponent on the vertical layout case
}
}
If I extends the VerticalLayout not the CustomComponent, then the containig object showed perfectly.
In the browser:
<div class="v-tabsheet-tabsheetpanel" style="width: 1278px; height: 0px;">
<div class="v-scrollable" style="position: absolute; visibility: hidden; top: -100000px; left: -100000px;">
<div class="v-scrollable" style="position: absolute; visibility: hidden; top: -100000px; left: -100000px;">
<div class="v-scrollable" style="position: absolute; top: 0px; left: 0px; width: 1278px;">
<div class="v-customcomponent v-widget v-has-width" style="width: 100%;"></div>