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

opening a popup shrinks parent iframe's width

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Later Later
    • 8.5.2
    • 8.0.5
    • None
    • Security Level: Jimmy

      Steps to Reproduce

      1. load t4813.html with IE11 compatibility view
      2. click the combobox button to open a popup

      Current Result

      iframe width shrinks each time when you open and close the popup

      Expected Result

      iframe width doesn't change

      Debug Info

      1. it happens when iframe width is not 100% or a fixed size.
      1.1 The smaller percentage you specify, the more IE shrinks an iframe's width. For example, if you specify 98%, it shrinks a little a time, if you specify 90%, it shrinks more each time.
      1.2 IE event shrinks the width when loading the page (before you open a popup). When zul page updates, e.g. "processing" appears and disappears, IE also shrinks the width.
      2. iframes created by zk popup are not removed totally.
      3. the iframe in parent HTML is not accessible and cannot be modified in a customer's use case
      4. a datebox popup also causes the same issue.

      Workaround

        1. Document mode ie7.png
          Document mode ie7.png
          6 kB
        2. set-iframe-width.js
          0.6 kB
        3. t4813.html
          0.1 kB
        4. t4813-combobox.zul
          0.1 kB

            CharlesQiu CharlesQiu
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Time Spent - 3 hours Remaining Estimate - 5 hours
                5h
                Logged:
                Time Spent - 3 hours Remaining Estimate - 5 hours
                3h