ParamQuery grid support forum
General Category => Help for ParamQuery Grid (free version) => Topic started by: void on April 24, 2020, 08:27:03 am
-
As mentioned in the subject, pqGrid leaves "width" and "height" CSS properties set inline in the Body tag, but I don't see any errors in the console.
Does anyone have any idea of why? --Willing to share it.
Thank you.
-
It's part of the design.
-
It's part of the design.
I don't think I explained myself properly. What I meant to say is that, once you restore the Grid to its original non-maximized state, the Body still has fixed dimensions set (via CSS).
Thus, if you resize the window, the body remains the same size (which now does not match its window), messing with the page design and any other content.
The feature seems potentially valuable for my user base so I'm testing a CSS workaround, it's just that this looks like a defect to me.
-
Oh Ok, got it.
You can clear the inline height, width styles of body in pqgrid toggle event in order to fix it.
toggle: function(evt, ui){
if( ui.state == 'min' )
$(document.body).css({
height: "",
width: ""
});
}