mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:15 +01:00
Size chosen selectboxes even if they are hidden - prevents 0 width chosen selects
This commit is contained in:
parent
70ba888c95
commit
1bdd5eb617
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user