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

Modal window loses it's modality in certain situation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 6.0.1
    • Fix Version/s: 6.5.1
    • Component/s: None
    • Labels:
      None

      Description

      If you display the notification bubble from within a modal window then that window is losing it's modality when moved around.

      Example code:

      <zk xmlns="http://www.zkoss.org/2005/zul">
      
          <window id="mainWindow">
              <button label="Open modal window">
                  <attribute name="onClick">modalWindow.setVisible(true)</attribute>
              </button>
          </window>
      
          <window id="modalWindow" mode="modal" title="Modal window" visible="false"
                  width="80%" height="50%" border="normal">
              <button label="click me">
                  <attribute name="onClick">
                      Clients.showNotification("Now try to drag around the modal window")
                  </attribute>
              </button>
          </window>
      
      </zk>
      

      Also please note that there is something strange going on when you finally drop this window in the new position.
      When you move it again for the second time (now without clicking on the button) it will loose modality even without notification bubble. It's only when you move it for the third time when it's back to normal.

        Attachments

          Activity

            People

            Assignee:
            MontyPan MontyPan
            Reporter:
            czynga czynga
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: