selecting a listitem moves the scrollbar to the left

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Normal
    • None
    • Affects Version/s: 9.6.4
    • Component/s: None
    • Security Level: Jimmy
    • None

      Steps to Reproduce

      1. visit the page with Firefox
      2. move the scrollbar to the rightmost position
      3. select a listitem

      Current Result

      the scrollbar moves to the left

      Expected Result

      the scrollbar doesn't move

      Debug Information

      1. calling focus(), firefox will scroll the focus button to the center of the view if the button is out of the current viewport. Although listbox.synfocus() already moves the focus button to the edge of the current viewport. Somehow firefox still thinks the button is not in the viewport and scrolls it into the center of the view.

      Workaround

      n.focus({preventScroll: true });
      

      since we don't want to scroll anyway.

        1. zk-5568.zul
          2 kB
        2. zk-5568.gif
          zk-5568.gif
          16 kB
        3. zk-5568.js
          1 kB

            Assignee:
            Unassigned
            Reporter:
            hawk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: