<?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: setGridWidth() lossy column widths over time</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/setgridwidth-lossy-column-widths-over-time</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/setgridwidth-lossy-column-widths-over-time/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>macbuoy on setGridWidth() lossy column widths over time</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/setgridwidth-lossy-column-widths-over-time#p17307</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/setgridwidth-lossy-column-widths-over-time#p17307</guid>
        	        	<description><![CDATA[<p>I have tested this in 3.6.5 and it is, indeed, fixed! Thanks!!!</p>
<p>HOWEVER, it turns out that this is NOT the cause of my problem with saved gridConfigs where the columns eventually lose width when the grid page(s) is revisited. That problem seems to be a combination of saving the config and another bug I will report where, under certain conditions, the grid scrollbar column shows up on initial load just outside of the parent element.</p>
<p>To work around this, using onGridComplete I was triggering my window.resize event which is bound to my method for making the grid width track the parent element width properly using setGridWidth(). When shrinkToFit is enabled, this initial gridComplete::setGridWidth() call is, natually, lossy when the shrinkToFit formula results in float numbers (I&#39;m assuming these are converted to real numbers and so, across multiple columns, pixels are lost). So, my saved settings, saved on page-Unload, always have widths a little smaller than the previous save.</p>
<p>Oddly enough, the issue of the over-hanging scrollbar is inconsistent--it happens all the time in IE 8, but, in Chrome and Firefox only when the window is maximized to my 16 inch screen. Again, I&#39;ll be reporting this on the bugs forum as a separate issue.</p>
]]></description>
        	        	<pubDate>Wed, 19 May 2010 17:46:12 +0300</pubDate>
        </item>
        <item>
        	<title>tony on setGridWidth() lossy column widths over time</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/setgridwidth-lossy-column-widths-over-time#p16948</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/setgridwidth-lossy-column-widths-over-time#p16948</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Cluold you please try with the last 3.6.5 version. We have made some fixes on this.</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 06 May 2010 13:44:11 +0300</pubDate>
        </item>
        <item>
        	<title>macbuoy on setGridWidth() lossy column widths over time</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/setgridwidth-lossy-column-widths-over-time#p16906</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/setgridwidth-lossy-column-widths-over-time#p16906</guid>
        	        	<description><![CDATA[<p>as per the documentation, I use setGridWidth() to resize my grid if I detect that the window is resized--I get the width of the parent element and setGridWidth() accordingly. oddly, if the grid is resized enough times, columns lose width and cannot get it back--even if the window is made very large. Here is a demo, what I show is the initial load of the grid followed by epileptic resizing of the width of the window to quickly demonstrate the eventual failure of the columns to gain any width back when the window width is enlarged:</p>
<p><a href="http://screencast.com/t/OWRlZmJiZmU" rel="nofollow" target="_blank">http://screencast.com/t/OWRlZmJiZmU</a></p>
<p>This is a problem because I am saving the user&#39;s grid config on pageUnload. Every time they come back to the page, I load the columns just a tad narrower because of the above effect. Eventually, the columns are completely collapsed.</p>
]]></description>
        	        	<pubDate>Wed, 05 May 2010 00:41:34 +0300</pubDate>
        </item>
</channel>
</rss>