From 261bc83811f607226368ec461a4e9d9b7ffd45ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eric=20Espi=C3=A9?= Date: Wed, 27 Jun 2018 15:42:32 +0000 Subject: [PATCH] =?UTF-8?q?N=C2=B01479=20:=20Fixed=20a=20bug=20where=20imp?= =?UTF-8?q?act=20analysis=20zoom=20would=20affect=20other=20tabs'=20size?= =?UTF-8?q?=20#jfb=20:)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SVN:trunk[5918] --- js/simple_graph.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/simple_graph.js b/js/simple_graph.js index 1a3c206a3..114bf7f15 100644 --- a/js/simple_graph.js +++ b/js/simple_graph.js @@ -801,7 +801,11 @@ $(function() } var aContexts = []; $('#'+sId+'_contexts').multiselect('getChecked').each(function() { aContexts[$(this).val()] = me.options.additional_contexts[$(this).val()].oql; }); - //this.element.closest('.ui-tabs').tabs({ heightStyle: "fill" }); + // Don't set the height on the tabs widget, only on the current tab + // Adjust the height of the graph to the window size + var sTabHeight = parseInt($(window).height() - this.element.parent().offset().top - 50); + this.element.closest('.ui-tabs-panel').css({ height: sTabHeight + "px" }); + this.adjust_height(); this._close_all_tooltips(); this.oPaper.rect(this.xPan, this.yPan, this.element.width(), this.element.height()).attr({fill: '#000', opacity: 0.4, 'stroke-width': 0});