Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesnt work with Vaadin TabSheets #2

Closed
pataiadam opened this issue May 15, 2014 · 0 comments
Closed

Doesnt work with Vaadin TabSheets #2

pataiadam opened this issue May 15, 2014 · 0 comments

Comments

@pataiadam
Copy link

Hi,

If i add diagramBuilder to a tabsheet (or accordion), the diagram appear on the top of the page. If I click to another tab and back to diagram tab, or if I repeat this 3-4 times, then I will see 4-5 diagrambuilder on the top of the page.

        /** Layout */
        VerticalLayout layout = new VerticalLayout();

        /*...*/
        /** Tabsheet */
        Accordion tabsheet = new Accordion();

        /** Tab  #1 - task table*/
        VerticalLayout overview = new VerticalLayout();
        taskTable = new Table();
        overview.addComponent(taskTable);
        /*...*/

        /** Tab  #2 - graphChart*/
        VerticalLayout graphChart = new VerticalLayout();
        diagramBuilder=new DiagramBuilder();
        graphChart.addComponent(diagramBuilder);
        diagramBuilder.setSizeFull();
            initDiagram(diagramBuilder);

            /**Add tabs to tabsheet*/
        tabsheet.addTab(graphChart, "Graph Chart");
        tabsheet.addTab(overview, "Overview");

        /**Add tabsheet to layout*/
        layout.addComponent(tabsheet);

diagram

Regards,
Adam

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant