ParamQuery grid support forum

General Category => Bug Report => Topic started by: jplevene on November 19, 2024, 09:27:14 pm

Title: Tiny bug in v10.0.1
Post by: jplevene on November 19, 2024, 09:27:14 pm
If the grid is created inside a hiden parent (parent hidden before grid created, like a jquery UI dialog), errors occure unless the following code is added:

getTop: function(ri, actual) {
   var top = this.topArr ? this.topArr[ri] : 0,
         ....

getLeft: function(_ci, actual) {
   if(typeof(this.leftArr)==="undefined") return 0;
        ....

calcTopBottom: function(left) {
   if(typeof(this.dims)==="undefined") return 0;
   ...
Title: Re: Tiny bug in v10.0.1
Post by: paramvir on November 20, 2024, 11:58:48 am
This is a duplicate of the issue already raised by you and this is fixed in v10.1.0

Test case:

https://jsfiddle.net/u0n296ym/1/