Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-101842

Image loses proportions when specifying an URL for it in content pages

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Duplicate
    • Affects Version/s: Master
    • Fix Version/s: None
    • Component/s: WCM
    • Labels:
      None
    • Fix Priority:
      3

      Description

      Steps to reproduce:

      • Go to Content & Data > Document and Media
      • Add a new image (better if it's an image with big proportions)
      • Go to Site Builder > Page Fragments
      • Add a new fragment collection
      • Add a new fragment entry of type component

      In the html add an editable of type image like this:

      <lfr-editable id="img001" type="image">
          <img src="#">
      </lfr-editable>
      
      •  Publish the fragment
      • Go to Site Builder > Pages and add a new public content page
      • In Section Builder, add a layout of 3 columns
      • Add the component that was created previously to one of the columns
      • Click on the fragment and select image properties
      • Select the image that was added previously

      Notice that the image adapts to the width of the column

      • Click again on the image, and this time click on the link options
      • Specify an URL for the link

      Expected result: The image still adapts to the widht of the column

      Actual result: The image shows in full size, and removing the URL will make the image adapt to the column again

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kyle.miho Kyle Miho
                Reporter:
                jurgen.kappler Jürgen Kappler
                Participants of an Issue:
                Recent user:
                Kyle Miho
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  7 weeks, 6 days ago

                  Packages

                  Version Package