summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticResultFormats/formats/timeseries/resources/ext.srf.timeseries.flot.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/wiki/extensions/SemanticResultFormats/formats/timeseries/resources/ext.srf.timeseries.flot.js')
-rw-r--r--www/wiki/extensions/SemanticResultFormats/formats/timeseries/resources/ext.srf.timeseries.flot.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/www/wiki/extensions/SemanticResultFormats/formats/timeseries/resources/ext.srf.timeseries.flot.js b/www/wiki/extensions/SemanticResultFormats/formats/timeseries/resources/ext.srf.timeseries.flot.js
index 46c16fd4..ec4b4f64 100644
--- a/www/wiki/extensions/SemanticResultFormats/formats/timeseries/resources/ext.srf.timeseries.flot.js
+++ b/www/wiki/extensions/SemanticResultFormats/formats/timeseries/resources/ext.srf.timeseries.flot.js
@@ -135,7 +135,10 @@
// Tabs height can vary (due to CSS) therefore after tabs instance was
// created get the height
var _tabs = chart.find( '.ui-tabs-nav' );
- container.find( '.' + plotClass ).css( { 'height': height - _tabs.outerHeight() , 'width': width } );
+ if (_tabs.length > 0) {
+ height -= _tabs.outerHeight();
+ }
+ container.find( '.' + plotClass ).css( { 'height': height, 'width': width } );
// Draw chart
container.srfFlotTimeSeries( 'chart', settings );