If I create a jQuery UI dialog on while initialising a page, and the dialog is hidden (autoOpen set to false) and the dialog contains a pqGrid, I get the attached error in the console when the screen size changes but ONLY if the dialog has not been made visible yet. Once the dialog has been made visible there is no problem. The pqGrid only does this when virtualWin:true is set.
I changed line 27596 to the following which fixes the attached error as dims is not defined for a pqGrid that has never been visible:
htContClient = left ? dims.wdContClient : (typeof(dims)!=="undefined" ? dims.htContClient : 0),
The issue with above is that I then get an exception thrown caused by the if statement on 27622:
if (!(bottom >= 0) || !(top >= 0)) {
throw "top bottom NaN"
}
The exception doesn't cause any issues as far as I can tell.