I have some problems with implementing jqGrid with jQuery layouts. The problem is with resizing the grid on browser window resize. The height is working correctly but my problem is width. The grid width won't refresh sometimes. Also, if I close the left pane, the grid doesn't recognize the new width and it keeps the old.

To be short, I need th egrid width to be 100% of window width.

I tried to implement [this code](http://www.trirand.com/blog/jqgrid/jqgrid.html#) to see where my problem was, but the same thing happened.
Here are pictures of my problem:

[Basic load](http://i56.tinypic.com/211mb5x.jpg) and [Splitter activated](http://i52.tinypic.com/2j4qdq9.jpg).