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

initially open popup does not clear loading mask

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 7.0.6
    • 7.0.5.2
    • Components
    • Security Level: Jimmy
    • ZK 7.0.7

      The following example opens a popup directly during the page initialization.
      This causes a "loading..." mask that does not disappear.

      The problem only exists when the popup has an onOpen-listener.

      <zk xmlns:w="client">
      <!-- workaround -->
      <!--  <div height="100%" onAfterSize='pop.open(self, "middle_center")'> -->
       <div height="100%" onCreate='pop.open(self, "middle_center")'>
        <popup id="pop" onOpen="">
      <!-- no onOpen = no loading mask -->
      <!--   <popup id="pop"> -->
         <div width="200px" height="200px">
          Popup Content
         </div>
        </popup>
       </div>
      </zk>
      

      The workaround is to postpone the popup.open() to the next ajax event
      e.g. using echo events or an onAfterSize listener with will have a similar effect

            ChunfuChang ChunfuChang
            cor3000 cor3000
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours
                2h