From 340fec0611a0055aa8fe96e3a912844df7c1d3b9 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 10 Dec 2012 16:16:58 +0000 Subject: [PATCH] - Remove debug - Change font in results to match selected option and other selectboxes --- phpgwapi/js/jquery/chosen/chosen.css | 1 + phpgwapi/js/jquery/chosen/chosen.jquery.js | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/phpgwapi/js/jquery/chosen/chosen.css b/phpgwapi/js/jquery/chosen/chosen.css index e428f88371..ab8291274b 100644 --- a/phpgwapi/js/jquery/chosen/chosen.css +++ b/phpgwapi/js/jquery/chosen/chosen.css @@ -243,6 +243,7 @@ overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; + font-family: Arial, Helvetica, sans-serif; } .chzn-container-multi .chzn-results { margin: -1px 0 0; diff --git a/phpgwapi/js/jquery/chosen/chosen.jquery.js b/phpgwapi/js/jquery/chosen/chosen.jquery.js index 185350ceaa..5684a859bd 100644 --- a/phpgwapi/js/jquery/chosen/chosen.jquery.js +++ b/phpgwapi/js/jquery/chosen/chosen.jquery.js @@ -380,14 +380,12 @@ Copyright (c) 2011 by Harvest if (totalHeight > windowHeight) { var difference = totalHeight - windowHeight, height = dropdownHeight - difference - this.search_container.height(); -console.log("windowHeight:" + windowHeight + " Total height: " + totalHeight + ' height: ' + height, this.container); if (height > 100) { this.search_results.css('max-height', height); } else { var to_top = egw.getHiddenDimensions ? egw.getHiddenDimensions(this.container,true)['top'] : this.container.offset().top; var to_bottom = windowHeight - to_top; -console.log("Distance to top: %d Distance to bottom %d", to_top, to_bottom, this.container.offset()); this.dropdown.addClass('chzn-above'); this.search_results.css('max-height', this.search_results.data('initialMaxHeight')); }