Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-21999

Page jumps caused by javascript when creating content in the backend

    XMLWordPrintable

Details

    Description

      When creating content in the backend javascript can cause the page to jump contantly to the top of the page.
      This is caused by the menu that is displayed on the top when we scroll down the page.

      The issue happens when we only have a small space to scroll down, so, this will depend on the number of attributes the content class contains, which will use more or less vertical space in the page.
      After we start scrolling the top menu will stick to the top of the page, and that will affect the size of the page

      We can force this to happen in Firefox, Chrome, and Internet Explorer, by using the in-browser zoom and resizing the window, making room for a small scrollable area. 50 pixels will do the trick, for example (see the attached screenshot).
      Otherwise, a content class with just a few attributes can also do the trick.
      I verified that this issue happens when creating a Survey (content class of eZ Survey), but it can happen with any custom class, if the size of the occupied area in the content creation page is some pixels bigger than the page area, making the scrollbar to be shown.

      Steps to reproduce:

      1. Go to the administration backend
      2. Start creating a content object, like a folder or an article (that will depend on your screen resolution)
      3. Resize your window to make it smaller than the page's content height (creating about 50 pixels (see the attached screenshot) of scrollable area)
      4. Scroll down, or click and drag the scrollbar downwards.

      The scroll will jump to the top of the page every time you try to scroll down.

      I attached a screenshot, showing an example on how this issue can happen.
      Also attached a .gif showing what happens.

      Attachments

        1. scroll bug.png
          scroll bug.png
          308 kB
        2. video.gif
          video.gif
          8.20 MB

        Activity

          People

            Unassigned Unassigned
            ricardo.correia-obsolete@ez.no Ricardo Correia (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: