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

Scrollbar forgets it's state on tab switching at tabbox

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 6.5.1
    • 6.5.0, 6.0.3
    • Components
    • None
    • IE8

      Steps to reproduce:

      • In IE8 open url: http://www.zkoss.org/zksandbox/;
      • Execute the code below;
      • Expand nodes until a scrollbar will appear;
      • Scroll down as shown at step1.png;
      • Switch to tab2;
      • Switch back to tab1;

      Bug: The scroll bar is in initial state as shown at step2.png instead of being at the bottom.

      Code to reproduce bug
        <tabbox width="400px" height="400px">
          <tabs>
            <tab label="Tab 1" closable="true"/>
            <tab label="Tab 2" closable="true"/>
          </tabs>
          <tabpanels>
            <tabpanel style="position: relative; overflow: auto;">
              <zscript>                                                                            
                import org.zkoss.zksandbox.tree.BinaryTreeModel;
                BinaryTreeModel btm = new BinaryTreeModel(new ArrayList(new org.zkoss.zksandbox.BigList(1000)));
              </zscript>
              <tree id="tree" model="&#36;{btm}"/>
            </tabpanel>
            <tabpanel>Close this panel</tabpanel>
          </tabpanels>
        </tabbox>
      

        1. step1.png
          step1.png
          10 kB
        2. step2.png
          step2.png
          9 kB

            neillee neillee
            asd7004 asd7004
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: