Size chosen selectboxes even if they are hidden - prevents 0 width chosen selects

This commit is contained in:
Nathan Gray 2013-09-18 20:15:11 +00:00
parent 70ba888c95
commit 1bdd5eb617

View File

@ -555,10 +555,12 @@ var et2_selectbox = et2_inputWidget.extend(
{
this.input.attr("data-placeholder", this.options.empty_label);
}
this.input.css("width",this.options.tags ? "100%":'')
.chosen({
// Properly size chosen, even if on a hidden tab
var size = egw.getHiddenDimensions(this.input);
this.input.chosen({
inherit_select_classes: true,
search_contains: true
search_contains: true,
width: size.w + "px"
})
.change(this.onchange);
}