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

Listbox's select mold issue on Firefox

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 7.0.7, 8.0.1
    • 7.0.5.2
    • Browser Issue
    • Security Level: Jimmy
    • JDK 1.7 tomcat7

    • ZK 7.0.7

      Listbox中含有下拉選單Firefox瀏覽器中顯示異常之問題!
      38版與42版
      程式碼如下

      <div>
       <listbox id="outListbox" height="450px" >
       <listhead>
       <listheader label="編碼" />
       <listheader label="測試" />
       </listhead>
       <listitem >
       <listcell label="1"></listcell>
       <listcell >
       <listbox mold="select" >
       <listitem >
       <listcell label="1"></listcell>
       </listitem>
       <listitem >
       <listcell label="2"></listcell>
       </listitem> 
       </listbox>
       </listcell>
       </listitem>
       <listitem >
       <listcell label="2"></listcell>
       <listcell >
       <listbox mold="select" >
       <listitem >
       <listcell label="1"></listcell>
       </listitem>
       <listitem >
       <listcell label="2"></listcell>
       </listitem> 
       </listbox>
       </listcell>
       </listitem>
      
      </listbox>
       </div>
      

      Steps to reproduce

      1. load the zul above
      2. click the select mold listbox inside a Listbox
      3. move your pointer to select the drop-down listitem

      Actual result

      When a mouse pointer hovers out a Listitem, the drop-down list disappears immediately.

      Debug information

      • If outer listbox's listiem is selected, then the drop-down listbox inside that listitem can keep showing without disappearing when a mouse move to select one item.

      Workaround

      • <listbox id="outListbox" height="450px" nonselectableTags="">
      • use <combobox> instead
      • put the style below
        <style>
        /* a patch for select mold listbox under firefox*/
        .z-listitem:hover>.z-listcell { position:static; }

        </style>

        1. ListboxBug.png
          6 kB
          DigiwinDAP2
        2. ListboxTest.zul
          1 kB
          DigiwinDAP2

            jumperchen jumperchen
            DigiwinDAP2 DigiwinDAP2
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 1 day, 4 hours
                1d 4h
                Remaining:
                Time Spent - 1 hour Remaining Estimate - 1 day, 3 hours
                1d 3h
                Logged:
                Time Spent - 1 hour Remaining Estimate - 1 day, 3 hours
                1h