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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 5.0.8
    • 5.0.7.1
    • Browser Issue
    • None

      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.

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

              Created:
              Updated:
              Resolved: