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

Missing onShow event from borderregion to popups when expanding

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 9.0.1
    • 8.6.2
    • None
    • Security Level: Jimmy
    • None
    • ZK 9.0.1 S1

      Steps to Reproduce

      http://zkfiddle.org/sample/1a1uvrs/2-popup-in-collapsed-borderlayout-region

       

      Click "hide" button to hide the popup

      Click the collapse arrow on the right corner of the borderregion to collapse the south borderregion.

      Click the "show" button to set popup visible to true

      Click the arrow on the bottom right corner to expand the region (NOT the region name to unfold it without pining it opened)

      Current Result

      popup has the dom style = display: none + visibility: visible which makes it non-visible

      Expected Result

      Popup should be visible after the borderregion is expanded

       

      Debug Information

      borderregion onShow event doesn't propagate to the overlapped window

      Workaround

      <window id="wnd" border="normal" title="Dialog" mode="overlapped">
       <attribute w:name="setVisible"><![CDATA[ 
       function(visible) {
       this.$setVisible(visible);
       var n = this.$n();
       if (visible && n.style.display == 'none') {
       this.setDomVisible_(n, false, {visibility: 1});
       this.setDomVisible_(n, true, {display: 1});
       }
       }
       ]]></attribute>

       

            DevChu DevChu
            MDuchemin MDuchemin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: