It's definitely buggy, even defining a width when creating the object instance.
It seems the bug comes from this block :
org.ametys.cms.widgets.UserSelectorWidget.prototype.onRender = function(ct, position)
{
org.ametys.cms.widgets.UserSelectorWidget.superclass.onRender.call(this, ct, position);
[...]
this.displayField = new org.ametys.HtmlContainer ({
id: this.name + '-display',
html: '<span class="empty">Cliquez ci-après pour sélectionnez un utilisateur</span>',
cls: 'x-form-widget-display-field',
hidden: false,
renderTo: this.wrap,
width: (this.getWidth() - 17)
});
The "this.getWidth()" call does not return the wanted value, whereas the config should be already taken into account when getting there.
Moreover, the label "Cliquez ci-après pour sélectionnez un utilisateur" should be internationalized and comports a misspelling (should read "pour sélectionner").
It's definitely buggy, even defining a width when creating the object instance.
It seems the bug comes from this block :
The "this.getWidth()" call does not return the wanted value, whereas the config should be already taken into account when getting there.
Moreover, the label "Cliquez ci-après pour sélectionnez un utilisateur" should be internationalized and comports a misspelling (should read "pour sélectionner").