From 3cca95c3c5f8ae4c39a702c1e0f96bbdcd14b4ed Mon Sep 17 00:00:00 2001 From: Igor Sfiligoi Date: Fri, 26 Feb 2010 03:36:00 +0000 Subject: Increase scale height; Flot 0.6 uses more space for time series --- src/lib/rrdFlot.js | 9 ++++++--- src/lib/rrdFlotMatrix.js | 9 ++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/lib/rrdFlot.js b/src/lib/rrdFlot.js index a29e05c..05b0813 100644 --- a/src/lib/rrdFlot.js +++ b/src/lib/rrdFlot.js @@ -1,7 +1,7 @@ /* * RRD graphing libraries, based on Flot * Part of the javascriptRRD package - * Copyright (c) 2009 Frank Wuerthwein, fkw@ucsd.edu + * Copyright (c) 2010 Frank Wuerthwein, fkw@ucsd.edu * Igor Sfiligoi, isfiligoi@ucsd.edu * * Original repository: http://javascriptrrd.sourceforge.net/ @@ -24,6 +24,7 @@ * External dependencies: * [Flot]/jquery.py * [Flot]/jquery.flot.js + * [Flot]/jquery.flot.selection.js */ /* graph_options defaults (see Flot docs for details) @@ -136,12 +137,14 @@ rrdFlot.prototype.createHTML = function() { cellScale.align="right"; var elScale=document.createElement("Div"); elScale.style.width="250px"; - elScale.style.height="75px"; + elScale.style.height="110px"; elScale.id=this.scale_id; cellScale.appendChild(elScale); var cellScaleReset=rowScale.insertCell(-1); - //cellScaleReset.vAlign="top"; + cellScaleReset.vAlign="top"; + cellScaleReset.appendChild(document.createTextNode(" ")); + cellScaleReset.appendChild(document.createElement('br')); var elScaleReset=document.createElement("input"); elScaleReset.type = "button"; elScaleReset.value = "Reset selection"; diff --git a/src/lib/rrdFlotMatrix.js b/src/lib/rrdFlotMatrix.js index 15febb1..8304c3a 100644 --- a/src/lib/rrdFlotMatrix.js +++ b/src/lib/rrdFlotMatrix.js @@ -1,7 +1,7 @@ /* * RRD graphing libraries, based on Flot * Part of the javascriptRRD package - * Copyright (c) 2009 Frank Wuerthwein, fkw@ucsd.edu + * Copyright (c) 2010 Frank Wuerthwein, fkw@ucsd.edu * Igor Sfiligoi, isfiligoi@ucsd.edu * * Original repository: http://javascriptrrd.sourceforge.net/ @@ -38,6 +38,7 @@ * External dependencies: * [Flot]/jquery.py * [Flot]/jquery.flot.js + * [Flot]/jquery.flot.selection.js */ /* graph_options defaults (see Flot docs for details) @@ -171,12 +172,14 @@ rrdFlotMatrix.prototype.createHTML = function() { cellScale.align="right"; var elScale=document.createElement("Div"); elScale.style.width="250px"; - elScale.style.height="75px"; + elScale.style.height="110px"; elScale.id=this.scale_id; cellScale.appendChild(elScale); var cellScaleReset=rowScale.insertCell(-1); - //cellScaleReset.vAlign="top"; + cellScaleReset.vAlign="top"; + cellScaleReset.appendChild(document.createTextNode(" ")); + cellScaleReset.appendChild(document.createElement('br')); var elScaleReset=document.createElement("input"); elScaleReset.type = "button"; elScaleReset.value = "Reset selection"; -- cgit v1.1-4-g5e80