mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-22 21:30:54 +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.attr("data-placeholder", this.options.empty_label);
|
||||||
}
|
}
|
||||||
this.input.css("width",this.options.tags ? "100%":'')
|
// Properly size chosen, even if on a hidden tab
|
||||||
.chosen({
|
var size = egw.getHiddenDimensions(this.input);
|
||||||
|
this.input.chosen({
|
||||||
inherit_select_classes: true,
|
inherit_select_classes: true,
|
||||||
search_contains: true
|
search_contains: true,
|
||||||
|
width: size.w + "px"
|
||||||
})
|
})
|
||||||
.change(this.onchange);
|
.change(this.onchange);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user