1
0
Fork 0
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:
cTn 2014-04-21 11:59:02 +02:00
parent c1fc82e0e4
commit 3421916c21
2 changed files with 9 additions and 7 deletions

View file

@ -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]);