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

Fix image centering in nuxeo-image-viewer after closing sidebar

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.1.4, 3.0.27
    • Component/s: UI
    • Release Notes Summary:
      The image in nuxeo-image-viewer is well centered after closing the sidebar.
    • Backlog priority:
      300
    • Sprint:
      UI - 2023-9, UI COOLDOWN - 2023-8
    • Story Points:
      2

      Description

      When viewing a Picture document, the image found within the nuxeo-image-viewer element does not automatically center when the sidebar (containing details and metadata layout) is closed.

      Steps To Reproduce:

      1. Navigate to a Picture document in Web UI
      2. Close the sidebar after the image preview loads using the  button

      Expected result: the image preview center aligns relative to the new width of nuxeo-picture-view-layout (see behavior in LTS 2019)

      Actual result: the image remains frozen at its previous location, while the controls toolbar center aligns as expected. The image only center aligns after the browser window size is changed.

      (see attached video for reference)

        Attachments

        1. elements-1584.mp4
          957 kB
          Henry Miskaryan
        2. Screenshot 2023-08-25 at 5.11.34 PM.png
          6.48 MB
          Alok Ranjan

          Issue Links

            Activity

              People

              • Assignee:
                aranjan Alok Ranjan
                Reporter:
                hmiskaryan Henry Miskaryan
                Participants:
                Reviewers:
                Rahul Jain, Rakesh Singh, Swarnadipa Choudhury
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 2 days, 2 hours
                  2d 2h
                  Remaining:
                  Time Spent - 1 day, 1 hour Remaining Estimate - 1 day, 1 hour
                  1d 1h
                  Logged:
                  Time Spent - 1 day, 1 hour Remaining Estimate - 1 day, 1 hour
                  1d 1h