jqGrid contains textareas with lot of lines. Edit and view window height is too big in this case . Those windows are rendered out of screen, bottom rows are not visible.
How to restrict those window heights so that they always fit to screen and force scrollbars to appear in nessecary ?
Answers which I found restrict textarea height but I'm looking for a way to restrict whole window height and force scrollbars in while window to appear if nessecary.
I tried
jQuery.extend(jQuery.jgrid.edit, {
maxheight: 0.82* screen.height,
dataheight: height-60
} );
jQuery.extend(jQuery.jgrid.view, {
maxheight: 0.82* screen.height,
dataheight: height-60
} );
but this does not restrict max height.