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

        1. Screenshot 2023-09-07 at 12.34.18 PM.png
          2.82 MB
          pranit.sadashivsotre@contractors.onbase.com
        2. Screenshot 2023-09-07 at 12.35.29 PM.png
          1.81 MB
          pranit.sadashivsotre@contractors.onbase.com

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: