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

@MatchMedia doesn't send AU request when reducing browser size

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Normal Normal
    • 9.5.1
    • 9.1.0
    • None
    • Security Level: Jimmy
    • None
    • ZK 9.5.1 S1

      Steps to Reproduce

      1. run the zul and VM
      2. reduce the browser window size to less than 1260px

      Current Result

      @MatchMedia: 3
      CSS Media Query: 2

      Expected Result

      @MatchMedia: 2
      CSS Media Query: 2

      Debug Information

      1. in this example, CSS media query and @MatachMedia has the same rules. CSS update according to width change but @MatchMedia doesn't update.
      2. When reducing the width down to 1260px, zk doesn't send AU to notify width change
      3. if you enlarge width from 500px to over 1260px, you fill find the numbers in the page update correctly. (Both @MatchMedia and CSS media query)

      Workaround

      • reqplace @MatchMedia("all and (min-width: 670px)") with @MatchMedia("all and (min-width: 670px) and (max-width: 1259px)")

        1. match.zul
          0.7 kB
          hawk
        2. MyViewModel.java
          0.8 kB
          hawk

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

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Remaining Estimate - 1 day
                1d
                Logged:
                Time Spent - Not Specified
                Not Specified