From eea3aac80d51dc232798469a434e6937cca07e38 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 11 May 2016 20:14:14 +0000 Subject: [PATCH] Fix up the filterheader sizing to better fit in the nm header --- api/js/etemplate/et2_extension_nextmatch.js | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/api/js/etemplate/et2_extension_nextmatch.js b/api/js/etemplate/et2_extension_nextmatch.js index d52e2da919..441471ebf9 100644 --- a/api/js/etemplate/et2_extension_nextmatch.js +++ b/api/js/etemplate/et2_extension_nextmatch.js @@ -3275,7 +3275,7 @@ var et2_nextmatch_filterheader = (function(){ "use strict"; return et2_taglist.e this.nextmatch.applyFilters({col_filter: col_filter}); } }, - rows: { default: 3} + rows: { default: 2} }, /** @@ -3326,7 +3326,9 @@ var et2_nextmatch_filterheader = (function(){ "use strict"; return et2_taglist.e // Make sure selectbox is not longer than the column resize: function() { + this.div.css("height",''); this.div.css("max-width",jQuery(this.parentNode).innerWidth() + "px"); + this._super.apply(this, arguments); } });}).call(this); @@ -3394,13 +3396,8 @@ var et2_nextmatch_accountfilterheader = (function(){ "use strict"; return et2_ta }, // Make sure selectbox is not longer than the column resize: function() { - var max = jQuery(this.parentNode).innerWidth() - 4; - var surroundings = this.getSurroundings()._widgetSurroundings; - for(var i = 0; i < surroundings.length; i++) - { - max -= jQuery(surroundings[i]).outerWidth(); - } - this.div.css("max-width",max + "px"); + this.div.css("max-width",jQuery(this.parentNode).innerWidth() + "px"); + this._super.apply(this, arguments); } });}).call(this);