Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Size of grid gets smaller when hiding/showing columns #259

Closed
pikachoo5 opened this issue Feb 8, 2012 · 1 comment
Closed

Size of grid gets smaller when hiding/showing columns #259

pikachoo5 opened this issue Feb 8, 2012 · 1 comment

Comments

@pikachoo5
Copy link

I found a regression bug.
Prior to the upgrade the grid was working fine with 4.0.
Currently I have a grid with many columns, but the columns of interest are two columns with times.
By default column time “EstimatedTime” is visible and column time "ActualTime" is hidden.
I have a check box that when clicked hide/shows column "EstimatedTime" or column "ActualTime".
The issue is that every time I run this code
if (btnRound.is(“:checked”)) {
table.jqGrid(“showCol”, “EstimatedTime”);
table.jqGrid(“hideCol”, “ActualTime”);
} else {
table.jqGrid(“hideCol”, “EstimatedTime”);
table.jqGrid(“showCol”, “ActualTime”);
}
The width of the grid gets smaller. I need the width to stay fixed.

The demo page “New since beta 3.0″ is behaving the same way for “Hide/Show Columns”.
If the user clicks several times the hide and show links, you will notice that the grid is getting smaller.
Thanks any feedback would be appreciated.

@pikachoo5
Copy link
Author

I just confirmed the issue happens when the grid has a scroll bar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants