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

a highlighted window in an invisible parent doesn't get onSize event

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 9.6.3
    • 9.0.1.2, 9.6.2
    • None
    • Security Level: Jimmy

      Steps to Reproduce

      1. click the button
      2. check z-window-content's height

      Current Result

      no height specified

      Expected Result

      there is a height specified

      Debug Information

      • 9.0.0 doesn't have this bug
      • users put a content-box inside window with height: 100%, if z-window-content has no height. The content-box height is also unexpected.
      • the target to check the visibility changes between 9.0.0 and 9.0.1.2.

      Workaround

      • don't put the highlighted window into an invisible parent, win.setPage(parent.getPage())
      • CSS
        since window might have title, so you need to subtract the height of the title
        .z-window-content { height: calc(100% - 40px); // the height of the title in your environment }
      • win.setWidgetListener("onBind", "zWatch.fireDown('onSize', this)"); //fire onSize for ZK-5203

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

              Created:
              Updated:
              Resolved: