You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Auto width *reduction* of grid not working if Paramquery grid is inside a table cell #177
Change the width of the Paramquery viewport.
If it's enlarged, Paramquery adjusts its width.
But if it's reduced, the Paramquery grid is not reduced accordingly.
I would expect Paramquery to reduce its width accordingly for the table to stay at a total of 100% width (as specified).
If I use floating DIVs instead of a table, autoadjustment works in both directions.
Strangely, when entering fullscreen mode, the width is correctly calculated - AND, when restoring from fullscreen, the width of the Paramquery Grid is reduced to the full width of the viewport, but without respecting the other table columns' widths.
If this were the case, why does Paramquery automatically expand in my example? If it can expand (i.e. calculate a new width after the viewport has changed), it should be able to reduce as well, shouldn't it? There is no circular dependency (as far as I can see).
My specific issue is that we need to use a table layout like here: https://jsfiddle.net/pqxk2c5s/ to make the colResizable plugin work for our layout, and width reduction does not work there, although width expansion does.
Activity
paramquery commentedon Mar 7, 2022
That looks like a chicken and egg situation: td width dependent upon grid width and grid width dependent upon td width.
td needs to have well defined width in order for your example to work correctly.
td style='width:80%;'
Check this https://jsfiddle.net/409thuc5/
jensb commentedon Mar 7, 2022
If this were the case, why does Paramquery automatically expand in my example? If it can expand (i.e. calculate a new width after the viewport has changed), it should be able to reduce as well, shouldn't it? There is no circular dependency (as far as I can see).
My specific issue is that we need to use a table layout like here: https://jsfiddle.net/pqxk2c5s/ to make the colResizable plugin work for our layout, and width reduction does not work there, although width expansion does.
Can we fix this somehow?
paramquery commentedon Apr 2, 2022
Version 8.3.0 has improved reactivity and fixes this issue.
https://jsfiddle.net/hwv2m4cr/1/
jensb commentedon Apr 2, 2022
Thank you !!! :-)
Will test it on our systems and give feedback.