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

notification message affects panel size after maximize

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 8.5.2
    • 8.5.1.2
    • ZK Client Engine
    • Security Level: Jimmy
    • None
    • ZK 8.5.2 S1, ZK 8.5.2 S2

      Steps to Reproduce

      http://zkfiddle.org/sample/2758urn/1-panel-size-after-notification-with-maximize

      1. un-maximize the window
      2. click the button
      3. while the notification is visible maximize the panel
      4. after the notification disappeared un-maximize the panel

      Current Result

      the panel remains in its maximizes size (doesn't go back to 200x200)

      Expected Result

      panel size or 200x200 gets restored

      Debug Info

      the appended script gives additional debug information

       <panel id="wnd" title="View" height="200px" width="200px"
                  maximizable="true" maximized="true"
                  closable="true" sizable="true" movable="true"
                  floatable="true" border="rounded">
           <panelchildren>
              <button label="Click" style="float:right;"
                           onClick='Clients.showNotification("Hello", "info", wnd,
                                                                                 "middle_center", 1000);' />
              <iframe width="100%" />
           </panelchildren>
       </panel>
       <script type="text/javascript" defer="true">
            var iframe = jq('iframe')[0];
            iframe.contentWindow.onresize = function() { console.log(jq(iframe).width()); };
       </script>
      

      Root Cause

      Workaround

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

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 4 hours
                4h
                Remaining:
                Remaining Estimate - 4 hours
                4h
                Logged:
                Time Spent - Not Specified
                Not Specified