尽管设置为不可见,但显示了 Vaadin 面板
Vaadin panel is shown although set to invisible
我有一个 vaadin 应用程序并且有以下代码
Panel thePanel = new Panel("MainPanel");
HorizontalLayout panelContent = new HorizontalLayout();
panelContent.setSpacing(true);
panelContent.setMargin(true);
panelContent.setWidth("100%");
Label description = new Label("Description");
panelContent.addComponent(description);
panelContent.setVisible(false);
thePanel.addClickListener((e) -> panelContent.setVisible(! panelContent.isVisible()));
thePanel.setContent(panelContent);
此面板已添加到 VerticalLayout,并且已设置为选项卡的选项卡 sheet。
我的问题是加载页面时面板可见。
仅当单击其中一个时才按预期工作
为什么后者没有显示在开头?
谢谢
作为评论的人,我也不能再转载了。它现在显示预期的行为
我有一个 vaadin 应用程序并且有以下代码
Panel thePanel = new Panel("MainPanel");
HorizontalLayout panelContent = new HorizontalLayout();
panelContent.setSpacing(true);
panelContent.setMargin(true);
panelContent.setWidth("100%");
Label description = new Label("Description");
panelContent.addComponent(description);
panelContent.setVisible(false);
thePanel.addClickListener((e) -> panelContent.setVisible(! panelContent.isVisible()));
thePanel.setContent(panelContent);
此面板已添加到 VerticalLayout,并且已设置为选项卡的选项卡 sheet。
我的问题是加载页面时面板可见。
为什么后者没有显示在开头?
谢谢
作为评论的人,我也不能再转载了。它现在显示预期的行为