Author Topic: paramquery Cannot read property 'Z' of undefined  (Read 3771 times)

mercury85

  • Pro Enterprise
  • Jr. Member
  • *
  • Posts: 58
  • ASP.NET, VB.NET, MVC, JS, C#, VBA, SQL, MDX, DAX
    • View Profile
paramquery Cannot read property 'Z' of undefined
« on: July 09, 2018, 01:51:08 pm »
Hi I am trying to load the grid into a JQuery Template and am receiving the following error.  Jquery 2.1.0 must be different, not sure if there is a way to get teh screen values to work with 2.1.0 as I am receiving errors on the UI.

Cannot read property 'Z' of undefined
    at HTMLDocument.<anonymous> (pqgrid.min.js:4466)
    at j (jquery.min.js:2)
    at Object.add [as done] (jquery.min.js:2)
    at o.fn.init.o.fn.ready (jquery.min.js:2)
    at new o.fn.init (jquery.min.js:2)
    at o (jquery.min.js:2)
    at pqgrid.min.js:4465
    at pqgrid.min.js:4644

mercury85

  • Pro Enterprise
  • Jr. Member
  • *
  • Posts: 58
  • ASP.NET, VB.NET, MVC, JS, C#, VBA, SQL, MDX, DAX
    • View Profile
Re: paramquery Cannot read property 'Z' of undefined
« Reply #1 on: July 09, 2018, 02:19:25 pm »
 t(function() {
        var n = e.Z,
            r = e.cssZ,
            i = n(),
            o = r();
        e.isZoom = function() {
            var t = n(),
                e = r();
            return i != t || o != e ? (i = t, o = e, !0) : void 0
        };
        var a = e.isSB,
            l = a();
        t.paramquery.onResize(document.body, function() {
            var e = a();
            e != l && (l = e, t(window).trigger("resize", {
                SB: !0
            }))
        })
    }), t(window).on("resize", function() {
        e.ISZOOM = e.isZoom()
    });
    var e = t.paramquery.cRefresh = function(e) {
        var n = this;
        n.vrows = [], n.that = e, e.on("dataReadyDone", function() {
            n.addRowIndx()
        }), t(window).on("resize" + e.eventNamespace + " orientationchange" + e.eventNamespace, n.onWindowResize.bind(n))
    };
    t.extend(e, {
        Z: function() {
            return (window.outerWidth - 8) / window.innerWidth
        },
        cssZ: function() {
            return document.body.style.zoom
        },
        isFullScreen: function() {
            return document.fullScreen || document.mozFullScreen || document.webkitIsFullScreen || window.innerHeight == screen.height
        },
        isSB: function() {
            return t(document).height() > t(window).height()
        }
    })

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6307
    • View Profile
Re: paramquery Cannot read property 'Z' of undefined
« Reply #2 on: July 10, 2018, 09:23:21 am »
This issue is fixed in upcoming version.

Thanks for reporting issue.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6307
    • View Profile
Re: paramquery Cannot read property 'Z' of undefined
« Reply #3 on: July 24, 2018, 11:04:57 am »
This is fixed in v5.2.0