Set a max-height to column-selector list

This commit is contained in:
Hadi Nategh 2019-11-20 12:37:02 +01:00
parent f59f6bbc3f
commit 3714cbbdf2

View File

@ -1594,6 +1594,9 @@ var et2_nextmatch = (function(){ "use strict"; return et2_DOMWidget.extend([et2_
}
var t_position = jQuery(e.target).position();
var s_position = this.div.position();
var max_height = this.getDOMNode().getElementsByClassName('egwGridView_outer')[0]['tBodies'][0].clientHeight -
(2 * this.selectPopup.find('.dialogFooterToolbar').height());
this.selectPopup.find('.ui-multiselect-checkboxes').css('max-height',max_height);
this.selectPopup.css("top", t_position.top)
.css("left", s_position.left + this.div.width() - this.selectPopup.width());
},