Dynamically resize the 24hr chart
This commit is contained in:
parent
ac0ea0d5d7
commit
039d1364ea
@ -196,7 +196,7 @@ h3 {
|
||||
|
||||
/* The big graph */
|
||||
#big-graph, #big-graph-controls, #big-graph-checkboxes {
|
||||
width: 1540px;
|
||||
width: 90%;
|
||||
margin: 15px auto 0 auto;
|
||||
}
|
||||
|
||||
|
@ -529,5 +529,11 @@ $(document).ready(function() {
|
||||
|
||||
$(window).on('resize', function() {
|
||||
updatePercentageBar();
|
||||
|
||||
if (historyPlot) {
|
||||
historyPlot.resize();
|
||||
historyPlot.setupGrid();
|
||||
historyPlot.draw();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user