<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>jQuery Grid Plugin - jqGrid - Topic: Grid width calculated</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/grid-width-calculated</link>
	<description><![CDATA[Grid plugin]]></description>
	<generator>Simple:Press Version 5.7.5.3</generator>
	<atom:link href="http://www.trirand.com/blog/?page_id=393/bugs/grid-width-calculated/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>wayne.moir on Grid width calculated</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/grid-width-calculated#p27015</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/grid-width-calculated#p27015</guid>
        	        	<description><![CDATA[<p>By default  .ui-jqgrid tr.jqgrow td {white-space: pre;} is applied to data in the grid resulting in data that overflows the width of the cell being hidden. I believe that this is the wrong approach and that the data should not be hidden from the user. I am applying the style .ui-jqgrid tr.jqgrow td {white-space: normal;} to my page which results in my desired behaviour of data that overflows the width of the cell wrapping.</p>
</p>
<p>I am using this in conjunction with autowidth: true and am having the following problem.</p>
<p>On the initial page load the width of the grid is calculated correctly and there is no page scroll as my data is not of sufficient length to require it. Switching the column sorting order triggers page scroll as my data is of sufficient length to do so. The grid width is not recalculated to account for the page scroll whilst the rest of my page is, resulting in the grid breaking out of its container. I believe the grid and column widths should be recalculated on refresh.</p>
</p>
<p>An additional example of this happening is when resizing the browser window, when doing so the grid width is not recalculated and exceeds the width of the window even if the data contained within it is short enough to do so.</p>
</p>
<p>I can supply a bare bones demo if required.</p>
]]></description>
        	        	<pubDate>Wed, 25 Jul 2012 11:50:33 +0300</pubDate>
        </item>
</channel>
</rss>