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

youtube portlet - configuration forgets custom width/height if user sets a preset size

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 6.2.X EE, 7.0.0 Beta 7
    • Fix Version/s: 7.0.0 CE GA1
    • Component/s: WCM > Util > Youtube
    • Labels:
      None

      Description

      EDIT: NEED FIX FOR 6.2.X ONLY

      On the configuration page of youtube portlet there is Preset Frame Size select.
      If user chooses Custom, she/he can type in custom sizes into two input fields.

      If user chooses a preset size after it, than Custom again, width and height input fields are filled with the preset's size, not the previously set custom sizes.

      steps to reproduce

      1. add youtube portlet to a page
      2. got to configuration
      3. select Custom from preset sizes
      4. write 100 and 100 into Frame Width and Frame Height fields
      5. select Standard 360 4:3 from Preset Frame Size
      6. select Custom from Preset Frame Size

      expected behaviour

      100 and 100 should be appear in Frame Width and Frame Height fields

      experienced behaviour

      480 and 360 appears in Frame Width and Frame Height fields (the values for Standard 360 4:3 preset size)

      root cause

      Code uses width and height fields to store the selected sizes, however it can be read from select box's values.

        Attachments

        1. fix.png
          fix.png
          30 kB
        2. reproduce.png
          reproduce.png
          25 kB

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  3 years, 24 weeks, 5 days ago

                  Packages

                  Version Package
                  7.0.0 CE GA1