When dashbaord is rendered by value the maximize panel option for visualisation is not working

Hi ,

I am developing a kibana plugin to show a dashbaord and some other custom components.
I am using function dashboard.getDashboardContainerByValueRenderer() where dashboard is of type DashboardStart.

I am able to see the dashboard but the maximize panel option on visualisations is not maximizing the visualisation. The maximize option is changed to minimize but nothing is changed in the UI.

I used the same approach as used in example plugin dashboard_embeddable_examples in kibana repo and even in this example I am not able to maximize panel.

Thanks

kibana version : 7.17.1
I am using dev env with "yarn es snapshot" and "yarn start --run-examples".

I have attached screenshots of example plugin.


johannes.reuter@elastic.co can throw some light when he gets a chance.

It is resolved now ,
There are two css class responsible for maximizing and minimizing panels ,
which if added to index.scss file , the functionality starts working.

these are the two css classes to add :

.dshDashboardGrid__item--expanded {
    height: 100% !important;
    width: 100% !important;
    top: 0 !important;
    left: 0 !important;
}

.dshDashboardGrid__item--hidden {
    display: none;
}```

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.