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

Improve justified grid to use a row based algorithm

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3.1
    • Component/s: UI, Widgets
    • Release Notes Description:
      Hide

      Improves justified grid with a row-based algorithm that fixes image cropping and wrong ratios.

      Show
      Improves justified grid with a row-based algorithm that fixes image cropping and wrong ratios.
    • Tags:
    • Sprint:
      nxGang Sprint 10.1.2
    • Story Points:
      3

      Description

      One of the problems of the current justified grid, is that every row has a fixed height. In practice, this means that, if the images in rows have different aspect ratios and dimensions, some of them will be cropped.

      Goal is to modify the existing justified grid element to use a row based algorithm, and allow having different rows with different heights.

      For now, since the justified grid is only being used in the assets search of the DAM addon, this implementation will rely on picture:info from picture schema to get picture dimensions (works with videos as well).

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 5 hours
                  1d 5h