- Remove debug

- Change font in results to match selected option and other selectboxes
This commit is contained in:
Nathan Gray 2012-12-10 16:16:58 +00:00
parent f3f2f4d9ab
commit 340fec0611
2 changed files with 1 additions and 2 deletions

View File

@ -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;

View File

@ -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'));
}