Skip to content

Commit 3276ca0

Browse files
committed
Bugfix to correct z-index of plotly.js' modbar and octoprint's dropdown menu
1 parent 0ab2e90 commit 3276ca0

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

octoprint_tempsgraph/static/js/tempsgraph.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,16 @@ $(function() {
233233
height: 400,
234234
showlegend: false,
235235
};
236+
237+
// bufgix for z-index of modbar
238+
$("<style>")
239+
.prop("type", "text/css")
240+
.html("\
241+
.js-plotly-plot .plotly .modebar {\
242+
z-index: 999;\
243+
}")
244+
.appendTo("head");
245+
236246
Plotly.plot(self.plot, data, layout);
237247
}
238248

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
plugin_name = "OctoPrint-Tempsgraph"
1515

1616
# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
17-
plugin_version = "0.2.0"
17+
plugin_version = "0.2.1"
1818

1919
# The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin
2020
# module

0 commit comments

Comments
 (0)