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

Combobox drop-down position incorrect when the offsetTop value is float number

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 6.5.8, 7.0.6
    • 6.5.7, 7.0.5
    • Components
    • Security Level: Jimmy
    • None
    • ZK 7.0.7

      Reproducible sample in Firefox 38.0.1:

      <zk>
          <label multiline="true">
          Open the combobox twice, it is bug that the popup position is incorrect.
          </label>
          <zscript>
          List list = new ArrayList();
              for (int i = 0; i < 100; i++) {
                  list.add("item " + i);
          }
          ListModel model = new ListModelList(list);
          </zscript>
          <combobox model="${model}"
              style="position: absolute; top: 183.60000610351562px; left: 222.39999389648438px" />
      </zk>
      

      This sample is just to simulate the real case that the offsetTop value is float number.

            DevChu DevChu
            vincentjian vincentjian
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours
                2h