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

Fix image centering in nuxeo-image-viewer

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.4, 3.0.28
    • Component/s: UI
    • Release Notes Summary:
      The image in nuxeo-image-viewer is well centered when the main file is removed
    • Sprint:
      UI - 2023-9

      Description

      When viewing a Picture document, the image found within the nuxeo-image-viewer element does not automatically center.

      Steps To Reproduce:

      1. Navigate to a Picture document in Web UI
      2. Remove main file.
      3. Upload a new picture file and reload page.

      Expected result: the image preview center aligns relative to nuxeo-picture-view-layout

      Actual result: the image aligns right side and when close the sidebar after the image preview loads using the  button then image stretches to the full layout.

      (see attached screenshot for reference)

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: