• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.1
    • None
    • None
    • None

      The user widget layout is buggy : the "select user" icon is badly positioned, and setting the width in the widget configuration does not improve anything.

          [CMS-2236] The user widget layout is buggy

          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").

          Nicolas Gavalda (Inactive) added a comment - 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").

          You have to specify a width

          Raphaël Franchet added a comment - You have to specify a width

            raphael Raphaël Franchet
            ngavalda Nicolas Gavalda (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: