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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Fix
    • Affects Version/s: 9.1.0
    • Fix Version/s: 9.5.1
    • Component/s: None
    • Security Level: Jimmy
    • Labels:
      None
    • gh.sprint.customfield.default.name:
      ZK 9.5.1 S1

      Description

      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)")

        Attachments

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

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

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