<?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: Autowidth/Autoheight and IE problems</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/autowidthautoheight-and-ie-problems</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/help/autowidthautoheight-and-ie-problems/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>jmav on Autowidth/Autoheight and IE problems</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/autowidthautoheight-and-ie-problems#p11002</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/autowidthautoheight-and-ie-problems#p11002</guid>
        	        	<description><![CDATA[<p><a href="http://www.trirand.com/blog/?page_id=393&#038;forum=4&#038;topic=2132&#038;watch=user" rel="nofollow" target="_blank"><a href="http://www.trirand.com/blog/?p" rel="nofollow">http://www.trirand.com/blog/?p</a>.....watch=user</a></p>
]]></description>
        	        	<pubDate>Thu, 22 Oct 2009 16:15:47 +0300</pubDate>
        </item>
        <item>
        	<title>Tim on Autowidth/Autoheight and IE problems</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/autowidthautoheight-and-ie-problems#p10473</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/autowidthautoheight-and-ie-problems#p10473</guid>
        	        	<description><![CDATA[<blockquote>
<p>tony said:</p>
<p>Hello Romyn,</p>
<p>Not sure If I include this fix. It works ok when you have shrinkToFit set to false, but when this parameter is set to true we have a empty space bettwen the last row and the pager, which does not look good. I will publish this solution in HOWTO section of the grid, but will try to search a better one.</p>
<p>Regards</p>
<p>Tony</p>
</blockquote>
<hr />
<p>Well, something I did to tweak this was to also only apply this fix for IE7 and lower, IE8 has this issue fixed.</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2189' value='Select Code' data-codeid='sfcode2189' /></p>
<div class='sfcode' id='sfcode2189'>
<p style="padding-left: 30px;">/* ie browser fix */</p>
<p style="padding-left: 30px;">if ($.browser.msie &#38;&#38; $.browser.version&#60;8) {</p>
<p style="padding-left: 60px;">$a = $(&#39;.ui-jqgrid .ui-jqgrid-bdiv&#39;);</p>
<p style="padding-left: 60px;">$a.css(&#39;padding&#39;, &#39;0 0 15px 0&#39;);</p>
<p style="padding-left: 60px;">if(ts.p.height == &#39;100%&#39;){</p>
<p style="padding-left: 90px;">$a.css(&#39;overflow-y&#39;, &#39;hidden&#39;);</p>
<p style="padding-left: 60px;">}</p>
<p style="padding-left: 30px;">}</p>
<p style="padding-left: 30px;">/* end ie browser fix */</p>
</div>
]]></description>
        	        	<pubDate>Tue, 06 Oct 2009 10:18:14 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Autowidth/Autoheight and IE problems</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/autowidthautoheight-and-ie-problems#p8227</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/autowidthautoheight-and-ie-problems#p8227</guid>
        	        	<description><![CDATA[<p>Hello Romyn,</p>
<p>Not sure If I include this fix. It works ok when you have shrinkToFit set to false, but when this parameter is set to true we have a empty space bettwen the last row and the pager, which does not look good. I will publish this solution in HOWTO section of the grid, but will try to search a better one.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 04 Aug 2009 02:06:50 +0300</pubDate>
        </item>
        <item>
        	<title>Romyn on Autowidth/Autoheight and IE problems</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/autowidthautoheight-and-ie-problems#p8167</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/autowidthautoheight-and-ie-problems#p8167</guid>
        	        	<description><![CDATA[<p>Thanks for digging that out Tony,</p>
</p>
<p>For now I&#39;ve added</p>
</p>
<p>&#160;&#160;&#160; if ($.browser.msie) {<br />&#160;&#160;&#160; &#160;&#160;&#160; $a = $(".ui-jqgrid .ui-jqgrid-bdiv");<br />&#160;&#160;&#160; &#160;&#160;&#160; $a.css("padding", "0 0 15px 0");<br />&#160;&#160;&#160; &#160;&#160;&#160; $a.css("overflow-y", "hidden");<br />&#160;&#160;&#160; }</p>
</p>
<p>to my resizeGridWidths function as I prefer to leave your js files as they are - one more thing not to have to remember to do when I next update to a later version.</p>
</p>
<p>That&#39;s seems to have done the trick.</p>
</p>
<p>Regards</p>
<p>Romyn</p></p>
]]></description>
        	        	<pubDate>Fri, 31 Jul 2009 08:27:23 +0300</pubDate>
        </item>
        <item>
        	<title>hpoe on Autowidth/Autoheight and IE problems</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/autowidthautoheight-and-ie-problems#p8163</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/autowidthautoheight-and-ie-problems#p8163</guid>
        	        	<description><![CDATA[<blockquote>
<p>tony said:</p>
<p>Hello,</p>
<p>Could you please look this:</p>
<p><a rel="nofollow" href="/blog/?p=362&#38;cpage=5#comment-3198" target="_blank"></a><a href="http://www.trirand.com/blog/?p" rel="nofollow" target="_blank">http://www.trirand.com/blog/?p</a>.....mment-3198</p>
<p>and let me known if this resolve the problem.</p>
<p>Also here is the message:</p>
<p>&#8230;</p>
<div class="content">
<div id="commentbody-3198">
<p>For those of you having problems when you only have one row, and the scrollbars appear on Internet Explorer, here is a quick hack&#8230; just add it on some function (like updatepager() on grid.base.js</p>
<p>if ($.browser.msie) {<br /> $a = $(&#8217;.ui-jqgrid .ui-jqgrid-bdiv&#8217;);<br /> $a.css(&#8217;padding&#8217;, &#8216;0 0 15px 0&#8242;);<br /> if(ts.p.height == &#8216;100%&#8217;){<br /> $a.css(&#8217;overflow-y&#8217;, &#8216;hidden&#8217;);<br /> }<br /> }</p>
<p>&#8230;</p>
<p>Regards</p>
<p>Tony</p>
</div>
</div>
</blockquote>
<hr />
<p>Hello Tony,</p>
<p>after the code line 1094 original:</p>
<p>&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; if($.isFunction(ts.p.gridComplete)) {ts.p.gridComplete();}</p>
<p>I added the following</p>
<p>/* ie browser fix */<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; if ($.browser.msie) {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $a = $(&#39;.ui-jqgrid .ui-jqgrid-bdiv&#39;);<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $a.css(&#39;padding&#39;, &#39;0 0 15px 0&#39;);<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; if(ts.p.height == &#39;100%&#39;){<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $a.css(&#39;overflow-y&#39;, &#39;hidden&#39;);<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; }<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; }<br />/* end ie browser fix */</p>
<p>And it seems to work! I will make more tests, but I am optimistic.</p>
</p>
<p>Regards</p>
<p>HP Oe</p></p>
]]></description>
        	        	<pubDate>Fri, 31 Jul 2009 03:32:33 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Autowidth/Autoheight and IE problems</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/autowidthautoheight-and-ie-problems#p8149</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/autowidthautoheight-and-ie-problems#p8149</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Could you please look this:</p>
<p><a href="http://www.trirand.com/blog/?p=362&#038;cpage=5#comment-3198" rel="nofollow" target="_blank"><a href="http://www.trirand.com/blog/?p" rel="nofollow">http://www.trirand.com/blog/?p</a>.....mment-3198</a></p>
<p>and let me known if this resolve the problem.</p>
<p>Also here is the message:</p>
<p>...</p>
<div class="content">
<div id="commentbody-3198">
<p>For those of you having problems when you only have one row, and the scrollbars appear on Internet Explorer, here is a quick hack&#8230; just add it on some function (like updatepager() on grid.base.js</p>
<p>if ($.browser.msie) {<br /> $a = $(&#8217;.ui-jqgrid .ui-jqgrid-bdiv&#8217;);<br /> $a.css(&#8217;padding&#8217;, &#8216;0 0 15px 0&#8242;);<br /> if(ts.p.height == &#8216;100%&#8217;){<br /> $a.css(&#8217;overflow-y&#8217;, &#8216;hidden&#8217;);<br /> }<br /> }</p>
<p>...</p>
<p>Regards</p>
<p>Tony</p>
</div>
</div>
]]></description>
        	        	<pubDate>Thu, 30 Jul 2009 04:10:22 +0300</pubDate>
        </item>
        <item>
        	<title>Romyn on Autowidth/Autoheight and IE problems</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/autowidthautoheight-and-ie-problems#p8132</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/autowidthautoheight-and-ie-problems#p8132</guid>
        	        	<description><![CDATA[<p>Thanks - that would be useful. I&#39;ve tried searching for it but can&#39;t find it using what I thought were obvious search terms.</p>
</p>
<p>(The 1st one I&#39;ve now posted on the jQuery-UI googlegroup - hopefully someone will come to my rescue over there).</p>
</p>
<p>Regards</p>
<p>Romyn</p>
]]></description>
        	        	<pubDate>Wed, 29 Jul 2009 10:11:46 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Autowidth/Autoheight and IE problems</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/autowidthautoheight-and-ie-problems#p8115</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/autowidthautoheight-and-ie-problems#p8115</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>For the second. Could not remember, but I think there was a patch here in forum for this issue. Will try to find it - the correction is in css.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 29 Jul 2009 01:20:31 +0300</pubDate>
        </item>
        <item>
        	<title>Romyn on Autowidth/Autoheight and IE problems</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/autowidthautoheight-and-ie-problems#p8110</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/autowidthautoheight-and-ie-problems#p8110</guid>
        	        	<description><![CDATA[<p>Thanks for the reply Tony.</p>
</p>
<p>You&#39;re right - issue 1 does seem to be a problem with either the UI-Accordion or the UI-Layout control - got to work out which now. I did try you&#39;re suggestion vis-a-vis width instead of innerwidth but it made no difference unfortunately. I&#39;ve added an Alert in that gives the width when the pane is resized and it appears that with IE the width just decreases by 1px no matter how much the pane size is decreased by (FF shows the correct value in the alert). Increasing the width is fine in both. That&#39;s a clue at least.</p>
</p>
<p>As for the 2nd issue - I&#39;ve tried build 12 and now have loaded the latest from GitHub behind it but it still does the same thing - not showing all records in IE even though set to autoheight. It seems as though IE doesn&#39;t take into account the horiz scrollbar although FF does.</p>
</p>
<p>Any ideas?</p>
]]></description>
        	        	<pubDate>Tue, 28 Jul 2009 20:58:24 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Autowidth/Autoheight and IE problems</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/autowidthautoheight-and-ie-problems#p8045</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/autowidthautoheight-and-ie-problems#p8045</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>For the first issue - it is a not jqGrid problem, but a way how diffrent browsers calculate the width - in this case IE.</p>
<p>Maybe you should try not with width(), but with innerWidth().</p>
</p>
<p>function resizeGridWidths() {<br />&#160;outerwidth = $("#accordion").innerWidth()- 5;<br />&#160;$("#grid_1").setGridWidth(outerwidth);<br />&#160;$("#grid_2").setGridWidth(outerwidth);<br />}</p>
</p>
<p>For the second issue - could you please try with build 12. ALso I can not remember, but maybe you should try with the last vesrion from GitHub.</p>
<p>Thanks</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 27 Jul 2009 03:01:15 +0300</pubDate>
        </item>
        <item>
        	<title>Romyn on Autowidth/Autoheight and IE problems</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/autowidthautoheight-and-ie-problems#p7956</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/autowidthautoheight-and-ie-problems#p7956</guid>
        	        	<description><![CDATA[<p>Hi again <img class="spSmiley" style="margin:0" title="Embarassed" src="/blog/wp-content/forum-smileys/sf-embarassed.gif" alt="Embarassed" />,</p>
</p>
<p>I have a setup that has 2 grids within an Accordian that is inside a UI-Layout pane - I&#39;ve left all that in just in case it&#39;s relevant in any way - I have a couple of problems that show up within IE (6&#38;7).</p>
</p>
<p>The first can be seen on the following page:-</p>
<p><a href="http://www.thekmz.co.uk/GEPlugin/wip/test/gridtest3/gridtest3a.htm" rel="nofollow" target="_blank"><a href="http://www.thekmz.co.uk/GEPlug" rel="nofollow">http://www.thekmz.co.uk/GEPlug</a>.....test3a.htm</a></p>
</p>
<p>The grids are set to autowidth:true and height:&#39;auto&#39;.</p>
<p>(Having 2 grids means I can&#39;t use height:&#39;100%&#39; as that throw the 2nd grid down the page and gives a vertical scroll)</p>
</p>
<p>When the Layout-Pane is resized (by dragging the grey vertical bar) the Accordian is resized and so are the grids (using setGridWidth to 5px less than the accordian&#39;s outerwidth). This works as expected in FF but in IE making the Pane larger (drag left) the Grids increase in width OK but if I then make it smaller the Grids don&#39;t resize and I get a horiz scroll even if the columns should fit.</p>
</p>
<p>(I also get a vertical scroll in IE when initially loading the page which I can&#39;t seem to be able to get rid of - I can&#39;t see a reason why that is there - it&#39;s not in FF but may not be due to jqGrid - I don&#39;t know?)</p>
</p>
<p>The second problem is related to height:auto and can be seen on this page:-</p>
<p><a href="http://www.thekmz.co.uk/GEPlugin/wip/test/gridtest3/gridtest3b.htm" rel="nofollow" target="_blank"><a href="http://www.thekmz.co.uk/GEPlug" rel="nofollow">http://www.thekmz.co.uk/GEPlug</a>.....test3b.htm</a></p>
</p>
<p>This setup is exactly the same as the first but in this one I&#39;ve made the final column in the first grid wider so that it will give a horiz scroll when initially loaded. In FF it&#39;s looks fine and the autoheight works and I can see all the records. In IE however I not only get a horiz scroll but also a vertical one and all the records are not visible. I don&#39;t know if this is related in any way to problem 1 but I can&#39;t figure out a way to solve it without (maybe) setting and recalculating the height in code.</p>
</p>
<p>I&#39;ve searched the forum, promise,  as much as I can but can&#39;t seem to find a fix so any help would be greatly appreciated.</p>
</p>
<p>(I&#39;m using 3.5 build 11)</p>
</p>
<p>Thanks and regards</p>
<p>Romyn</p></p>
]]></description>
        	        	<pubDate>Wed, 22 Jul 2009 04:20:33 +0300</pubDate>
        </item>
</channel>
</rss>