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

initially open popup does not clear loading mask

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 7.0.5.2
    • Fix Version/s: 7.0.6
    • Component/s: Components
    • Security Level: Jimmy
    • Labels:
    • gh.sprint.customfield.default.name:
      ZK 7.0.7

      Description

      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

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

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