From de17439f5542aeca498ee7357ed3203c09af7aef Mon Sep 17 00:00:00 2001 From: Stephen Abello Date: Tue, 24 Aug 2021 16:04:02 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B03928=20Remove=20function=20messing=20up?= =?UTF-8?q?=20tabs=20height=20while=20giving=20no=20real=20benefit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/simple_graph.js | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/js/simple_graph.js b/js/simple_graph.js index 78f2fa06d..f4569d0da 100644 --- a/js/simple_graph.js +++ b/js/simple_graph.js @@ -392,25 +392,9 @@ $(function() } return null; }, - adjust_height: function() - { - var maxHeight = this.element.parent().height(); - // Compute the available height - var element = this.element; - this.element.parent().children().each(function() { - if($(this).is(':visible') && !$(this).hasClass('graph') && ($(this).attr('id') != element.attr('id'))) - { - maxHeight = maxHeight - $(this).height(); - } - }); - - this.element.height(maxHeight - 8); - this.oPaper.setSize(this.element.width(), this.element.height()); - }, auto_scale: function() { var fMaxZoom = 1.5; - this.adjust_height(); iMargin = 10; xmin = this.options.xmin - iMargin; @@ -821,7 +805,6 @@ $(function() var aContexts = []; $('#'+sId+'_contexts').multiselect('getChecked').each(function() { aContexts[$(this).val()] = me.options.additional_contexts[$(this).val()].oql; }); - 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}); this.oPaper.rect(this.xPan + this.element.width()/2 - 100, this.yPan + this.element.height()/2 - 10, 200, 20)