mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 16:55:36 +03:00
bugfixes for last merge
This commit is contained in:
parent
c1fc82e0e4
commit
3421916c21
2 changed files with 9 additions and 7 deletions
|
@ -40,10 +40,11 @@ function tab_initialize_sensors() {
|
|||
return sampleNumber + 1;
|
||||
}
|
||||
|
||||
var margin, width, height;
|
||||
function updateGraphHelperSize(selector, helpers) {
|
||||
var margin = {top: 20, right: 20, bottom: 10, left: 40};
|
||||
var width = $(selector).width() - margin.left - margin.right;
|
||||
var height = $(selector).height() - margin.top - margin.bottom;
|
||||
margin = {top: 20, right: 20, bottom: 10, left: 40};
|
||||
width = $(selector).width() - margin.left - margin.right;
|
||||
height = $(selector).height() - margin.top - margin.bottom;
|
||||
|
||||
helpers.widthScale.range([0, width]);
|
||||
helpers.heightScale.range([height, 0]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue