diff --git a/web_widget_bokeh_chart/__manifest__.py b/web_widget_bokeh_chart/__manifest__.py index 493965e4..69cbddd3 100644 --- a/web_widget_bokeh_chart/__manifest__.py +++ b/web_widget_bokeh_chart/__manifest__.py @@ -7,7 +7,7 @@ "summary": "This widget allows to display charts using Bokeh library.", "author": "Eficent, " "Odoo Community Association (OCA)", - "version": "11.0.1.0.0", + "version": "11.0.1.1.0", "website": "https://github.com/OCA/web", "depends": ["web"], "data": [ diff --git a/web_widget_bokeh_chart/static/src/css/custom-bokeh.css b/web_widget_bokeh_chart/static/src/css/custom-bokeh.css deleted file mode 100644 index bd42d8d7..00000000 --- a/web_widget_bokeh_chart/static/src/css/custom-bokeh.css +++ /dev/null @@ -1,4 +0,0 @@ -.bk-root { - /* Overriding this styling option Odoo menu is now displayed on top of bokeh graphs */ - position: sticky; -} \ No newline at end of file diff --git a/web_widget_bokeh_chart/static/src/less/custom-bokeh.less b/web_widget_bokeh_chart/static/src/less/custom-bokeh.less new file mode 100644 index 00000000..1644a4ab --- /dev/null +++ b/web_widget_bokeh_chart/static/src/less/custom-bokeh.less @@ -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; + } +} \ No newline at end of file diff --git a/web_widget_bokeh_chart/views/web_widget_bokeh_chart.xml b/web_widget_bokeh_chart/views/web_widget_bokeh_chart.xml index b99a615f..bb62f58a 100644 --- a/web_widget_bokeh_chart/views/web_widget_bokeh_chart.xml +++ b/web_widget_bokeh_chart/views/web_widget_bokeh_chart.xml @@ -6,7 +6,7 @@ - +