mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[11.0][FIX] web_widget_bokeh_chart: fix grahs expanding outside the container element.
This commit is contained in:
committed by
Christopher Ormaza
parent
5ff86aed20
commit
5d81e20276
@@ -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": [
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
.bk-root {
|
||||
/* Overriding this styling option Odoo menu is now displayed on top of bokeh graphs */
|
||||
position: sticky;
|
||||
}
|
||||
34
web_widget_bokeh_chart/static/src/less/custom-bokeh.less
Normal file
34
web_widget_bokeh_chart/static/src/less/custom-bokeh.less
Normal 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;
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,7 @@
|
||||
<xpath expr="." position="inside">
|
||||
<link rel="stylesheet" href="/web_widget_bokeh_chart/static/src/lib/bokeh/bokeh-0.12.7.css"/>
|
||||
<link rel="stylesheet" href="/web_widget_bokeh_chart/static/src/lib/bokeh/bokeh-widgets-0.12.7.css"/>
|
||||
<link rel="stylesheet" href="/web_widget_bokeh_chart/static/src/css/custom-bokeh.css"/>
|
||||
<link rel="stylesheet" href="/web_widget_bokeh_chart/static/src/less/custom-bokeh.less"/>
|
||||
<script type="text/javascript" src="/web_widget_bokeh_chart/static/src/lib/bokeh/bokeh-0.12.7.js"/>
|
||||
<script type="text/javascript" src="/web_widget_bokeh_chart/static/src/lib/bokeh/bokeh-widgets-0.12.7.js"/>
|
||||
<script type="text/javascript" src="/web_widget_bokeh_chart/static/src/js/web_widget_bokeh_chart.js"/>
|
||||
|
||||
Reference in New Issue
Block a user