• 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

          Nicolas Gavalda (Inactive) made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          Raphaël Franchet made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Raphaël Franchet made changes -
          Link New: This issue Bloque MYPAGE-30 [ MYPAGE-30 ]
          Nicolas Gavalda (Inactive) made changes -
          Assignee Original: Nicolas Gavalda [ ngavalda ] New: Raphaël Franchet [ raphael ]

          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").
          Nicolas Gavalda (Inactive) made changes -
          Fix Version/s New: 3.1 [ 10251 ]
          Fix Version/s Original: 1.1 [ 10279 ]
          Key Original: MYPAGE-29 New: CMS-2236
          Project Original: My Page [ 10071 ] New: CMS [ 10021 ]
          Workflow Original: jira [ 15965 ] New: Ametys [ 15966 ]
          Raphaël Franchet made changes -
          Assignee New: Nicolas Gavalda [ ngavalda ]
          Raphaël Franchet made changes -
          Fix Version/s New: 1.1 [ 10279 ]

          You have to specify a width

          Raphaël Franchet added a comment - You have to specify a width
          Raphaël Franchet made changes -
          Component/s Original: UI [ 10061 ]
          Fix Version/s Original: 3.1 [ 10251 ]
          Key Original: CMS-2235 New: MYPAGE-29
          Project Original: CMS [ 10021 ] New: My Page [ 10071 ]
          Workflow Original: Ametys [ 15963 ] New: jira [ 15965 ]

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

              Created:
              Updated:
              Resolved: