[11.0][FIX] web_widget_bokeh_chart: fix grahs expanding outside the container element.

This commit is contained in:
Lois Rilo
2019-03-08 17:32:06 +01:00
committed by Christopher Ormaza
parent 5ff86aed20
commit 5d81e20276
4 changed files with 36 additions and 6 deletions

View File

@@ -1,4 +0,0 @@
.bk-root {
/* Overriding this styling option Odoo menu is now displayed on top of bokeh graphs */
position: sticky;
}

View File

@@ -0,0 +1,34 @@
.bk-root {
/* Overriding this styling option Odoo menu is now displayed on top of bokeh graphs */
z-index: 0;
/* The following !important sentences are needed to override inline styles hardcoded by the bokeh library.
This way the graphs are always displayed inside their defined container in the Qweb views.
*/
.bk-layout-stretch_both {
height: inherit !important;
width: inherit !important;
}
.bk-plot-wrapper {
height: inherit !important;
width: inherit !important;
}
// forces the toolbar to be always at the right of the plot
.bk-toolbar-wrapper {
height: inherit !important;
float: right !important;
left: 0 !important;
}
.bk-canvas-wrapper {
height: inherit !important;
width: inherit !important;
}
.bk-canvas{
height: inherit !important;
width: inherit !important;
}
}