<?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: wrong calculation of the width of the grid if shrinkToFit is false</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/wrong-calculation-of-the-width-of-the-grid-if-shrinktofit-is-false</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/wrong-calculation-of-the-width-of-the-grid-if-shrinktofit-is-false/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>OlegK on wrong calculation of the width of the grid if shrinkToFit is false</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/wrong-calculation-of-the-width-of-the-grid-if-shrinktofit-is-false#p21728</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/wrong-calculation-of-the-width-of-the-grid-if-shrinktofit-is-false#p21728</guid>
        	        	<description><![CDATA[<p>Thank you Tony!</p>
<p>Now the code on GitHub contain all changes which I need. I will test the code inside of copy of real project which I developed about one year ago and where I should make a small update in the month. If I will find any problem I will post my results here as usual.</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Mon, 17 Jan 2011 00:03:13 +0200</pubDate>
        </item>
        <item>
        	<title>tony on wrong calculation of the width of the grid if shrinkToFit is false</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/wrong-calculation-of-the-width-of-the-grid-if-shrinktofit-is-false#p21709</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/wrong-calculation-of-the-width-of-the-grid-if-shrinktofit-is-false#p21709</guid>
        	        	<description><![CDATA[<p>Oleg,</p>
<p>I think tha the real fix should be:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7736' value='Select Code' data-codeid='sfcode7736' /></p>
<div class='sfcode' id='sfcode7736'>
<p>if (ts.p.shrinkToFit === false) {initwidth += brd*cl;}</p>
</p>
</div>
<p>This is true since before this condition we have</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7859' value='Select Code' data-codeid='sfcode7859' /></p>
<div class='sfcode' id='sfcode7859'>
<p>if (isSafari) { brd=0; }<br />$.each(ts.p.colModel, function(i) {<br />&#160;&#160;&#160;&#160;&#160; if(typeof this.hidden === &#39;undefined&#39;) {this.hidden=false;}</p>
<p>&#8230;</p>
</p>
</div>
<p>Since brd = 0 when safari the first condition is not needed.</p>
<p>Also fixed in GitHub</p>
</p>
<p>As for the jqChart - Thank you very much for the recommendatoion.</p>
<p>Also we have additional to this 4 themes they are not shown in the demo.</p>
<p>Definitley we will develop such theme.</p>
</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sun, 16 Jan 2011 15:54:48 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on wrong calculation of the width of the grid if shrinkToFit is false</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/wrong-calculation-of-the-width-of-the-grid-if-shrinktofit-is-false#p21593</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/wrong-calculation-of-the-width-of-the-grid-if-shrinktofit-is-false#p21593</guid>
        	        	<description><![CDATA[<p>Thanks for the information, Tony!</p>
<p>jqChart seems me <strong>very interesting</strong>. Only one small advice from me. Microsoft charts has many 3D effects. Your jqChart has on the other side very nice animation effects and good interaction. I would recommend you include some gradient effects in some your demos. Including CSS with gradient effects (see <a href="http://www.ok-soft-gmbh.com/jqGrid/NumberWithGradientColor.htm" target="_blank">my old demo</a>) in the "Column and Bar charts" for example makes almost no additional work, but the charts could look even more better.</p>
<p>Best wishes<br />Oleg</p>
]]></description>
        	        	<pubDate>Sun, 09 Jan 2011 21:45:58 +0200</pubDate>
        </item>
        <item>
        	<title>tony on wrong calculation of the width of the grid if shrinkToFit is false</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/wrong-calculation-of-the-width-of-the-grid-if-shrinktofit-is-false#p21588</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/wrong-calculation-of-the-width-of-the-grid-if-shrinktofit-is-false#p21588</guid>
        	        	<description><![CDATA[<p>Oleg,</p>
<p>Thank you for remaind us</p>
<p>Currently we are busy with the new version of jqSuite,</p>
<p><a href="http://www.trirand.net/demochartphp.aspx" rel="nofollow" target="_blank">http://www.trirand.net/demochartphp.aspx</a></p>
<p>which will include charts and a ton of improvements in the php grid.</p>
</p>
<p>I see all the posts in this forum instead and next week I will really work on all of your recommendations and fixes.</p>
<p>Of course I will look in all other posts.</p>
<p>Thank you again for all your efforts</p>
<p>Best Regards</p>
<p>Tony</p></p>
]]></description>
        	        	<pubDate>Sun, 09 Jan 2011 14:23:14 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on wrong calculation of the width of the grid if shrinkToFit is false</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/wrong-calculation-of-the-width-of-the-grid-if-shrinktofit-is-false#p21587</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/wrong-calculation-of-the-width-of-the-grid-if-shrinktofit-is-false#p21587</guid>
        	        	<description><![CDATA[<p>Hello Tony!</p>
<p>Could you find time to look in my suggestion, so that the corresponding bug fix could be included in the next release of jqGrid. I posted demos which reproduce the problem and which demonstrate that after changing only one line of the jqGrid code the problem could be fixed.</p>
<p>Thank you<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Sat, 08 Jan 2011 19:24:28 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on wrong calculation of the width of the grid if shrinkToFit is false</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/wrong-calculation-of-the-width-of-the-grid-if-shrinktofit-is-false#p21257</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/wrong-calculation-of-the-width-of-the-grid-if-shrinktofit-is-false#p21257</guid>
        	        	<description><![CDATA[<p>Hello Tony!</p>
<p>It seems I found one bug in the jqGrid&#160;calculation. If option <strong>shrinkToFit</strong> is set to <strong>false</strong>&#160;and width parameter is either not defined or defined as "100%" one a simple grid (see <a href="http://www.ok-soft-gmbh.com/jqGrid/WidthBug.htm" target="_blank">demo</a>) one see horizontal scroll bars in all popular Web browsers excepting Google Chrome and Safari:</p>
<p><a href="http://www.ok-soft-gmbh.com/jqGrid/WidthBugFF.png"><img src="http://www.ok-soft-gmbh.com/jqGrid/WidthBugFF.png" width="100"  class="sfimageleft spUserImage" alt="bug in Firefof" /><img src="http://www.trirand.com/blog/wp-content/sp-resources/forum-themes/default/images/sp_Mouse.png" class="sfimageleft sfmouseleft" alt="Image Enlarger" /></a></p>
<p>If the same demo will be read from the local file in the Internet Explorer one sees also the vertical scroll bars:</p>
<p><a href="http://www.ok-soft-gmbh.com/jqGrid/WidthBugIE.png"><img src="http://www.ok-soft-gmbh.com/jqGrid/WidthBugIE.png" width="100"  class="sfimageleft spUserImage" alt="bug in IE" /><img src="http://www.trirand.com/blog/wp-content/sp-resources/forum-themes/default/images/sp_Mouse.png" class="sfimageleft sfmouseleft" alt="Image Enlarger" /></a></p>
<p>If one defines additional <strong>width</strong>&#160;parameter explicitly&#160;as</p>
<p><input type='button' class='sfcodeselect' name='sfselectit3263' value='Select Code' data-codeid='sfcode3263' /></p>
<div class='sfcode' id='sfcode3263'>width: $.browser.safari ? 605 : 640</div>
<p>the problem will be fixed. So the calculation of the grid width should be changed to have the values specified above. To have possibly less changes in jqGrid, I suggest to fix the bug in the <strong>setColWidth</strong> function of the <strong>grid.base.js</strong>&#160;including&#160;additional line</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1928' value='Select Code' data-codeid='sfcode1928' /></p>
<div class='sfcode' id='sfcode1928'>if (!isSafari &#38;&#38; ts.p.shrinkToFit === false) {initwidth += brd*cl;}</div>
<p>before the line <a href="https://github.com/tonytomov/jqGrid/blob/master/js/grid.base.js#L1827" target="_blank">1827</a>. The same demo used with the fixed version of jqGrid code can be seen <a href="http://www.ok-soft-gmbh.com/jqGrid/WidthBugFixed.htm" target="_blank">here</a>. I tested the suggestion in the last versions of Opera/IE8/IE9beta/Chrome/Firefox/Safari.</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Sun, 12 Dec 2010 23:22:13 +0200</pubDate>
        </item>
</channel>
</rss>