Uploaded image for project: 'Nuxeo Elements'
  1. Nuxeo Elements
  2. ELEMENTS-885

Fix height management in nuxeo-selectivity

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.0
    • Fix Version/s: 2.4.9, 3.0.0
    • Component/s: Selectivity
    • Release Notes Summary:
      The nuxeo-selectivity element correctly handles the height attribute.
    • Backlog priority:
      650
    • Sprint:
      nxGang Sprint 11.1.5, nxGang Sprint 11.1.6, nxGang Sprint 11.1.11
    • Story Points:
      2

      Description

      Steps to reproduce:

      1. add to nuxeo-note-create-layout.html after the description in a nuxeo-textarea element
              <nuxeo-document-suggestion role="widget"
                                         selectedItem = "selectedItem"
                                         value="{{document.properties.dc:language}}"
                                         label="Doc lie"
                                         required="true"
                                         selection-formatter="{{_selectionFormatter_objContact}}">
              </nuxeo-document-suggestion> 
      2. add to the javascript part the code for selection formatter
            _selectionFormatter_objContact(doc)  {            
              var texte = '<iron-icon src="/nuxeo' + doc.properties['common:icon'] + '" class="avatar"></iron-icon>'  + doc.title;
              return texte;
            },
        
      3. Go to the creation form of a Note
      4. select one document by hitting "work" in the suggestion field
      5. observe that the text for the selected item exceeds by the bottom of the input : it corresponds to the attached screenshot

      With a higher value for .selectivity-single-select min-height, the display is correct/better : see More

      I also attach the default behavior where the text does not exceed : see

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 3 hours Original Estimate - 3 hours
                  3h
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 week, 2 hours
                  1w 2h