Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-4322

Listbox position is wrong after calling setSelectied in Safari

XMLWordPrintable

      Steps to Reproduce

      http://zkfiddle.org/sample/3kivtbf/1-ZK-2313-in-safari

      1. Use Safari to test
      2. Click each button to test

      Current Result

      The result of "Model ROD True" is wrong and behaves oddly.

      Expected Result

      The result of "Model ROD True" is correct and behaves normally.

      Debug Information

      1. The height of listbox grows and shrinks since 8.5.2.1.
      2. Only Safari has this issue.
      3. B50-ZK-587.zul has a similar issue (if rows was used)

      MeshWidget.js

      hgh = $midVisiRow.offsetTop() + $midVisiRow.offsetHeight();
      

      The value of $midVisiRow.offsetTop() is wrong in Safari (returns more like a scrollTop value)

      Workaround

            katherinelin katherinelin
            rudyhuang rudyhuang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Remaining Estimate - 1 day
                1d
                Logged:
                Time Spent - Not Specified
                Not Specified