ParamQuery grid support forum
General Category => Bug Report => Topic started by: mercury85 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
-
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()
}
})
-
This issue is fixed in upcoming version.
Thanks for reporting issue.
-
This is fixed in v5.2.0