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

If listbox with an empty content, the head's size in Opera is wrong

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 5.0.7.1
    • Fix Version/s: 5.0.8
    • Component/s: Browser Issue
    • Labels:
      None

      Description

      Related to this test case - zktest/test2/B30-1823236.zul. (or B30-1823236.ztl)

      If the content is empty, in MeshWidget.js we cannot use the this._getEbodyWd() to get the width for Opera.

      For example,
      var tblwd = this._getEbodyWd() // <- which use this.ebody.clientWidth;

      In Opera, if the content is empty, it will return a size which contains a scrollbar width, but it is unnecessary.

      To fix this we can check if the this.ebody.offsetHeight is 0, then return this.ebody.offsetWidth for Opera to avoid this issue.

        Attachments

          Activity

            People

            Assignee:
            SimonPai SimonPai
            Reporter:
            jumperchen jumperchen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: