<?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: Padding in em units causes width issues</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/padding-in-em-units-causes-width-issues</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/padding-in-em-units-causes-width-issues/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>rhankins on Padding in em units causes width issues</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/padding-in-em-units-causes-width-issues#p28332</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/padding-in-em-units-causes-width-issues#p28332</guid>
        	        	<description><![CDATA[<p>I&#39;ve observed that if I change the padding on the below line to a value of 0.8em, it causes width issues for the grid.&#160; Basically, the more columns I have in the grid, the more it will cause horizontal scrolling within the grid (using this padding value).&#160; If I change my padding setting to something in pixels, the problem goes away:</p>
</p>
<p>original CSS line in ui.jqgrid.css:</p>
<p>.ui-jqgrid tr.jqgrow td {font-weight: normal; overflow: hidden; white-space: pre; height: 22px;padding: 0 2px 0 2px;border-bottom-width: 1px; border-bottom-color: inherit; border-bottom-style: solid;}</p>
</p>
<p>modified CSS line with padding in em units (this has the problem I mentioned):</p>
<p>.ui-jqgrid tr.jqgrow td {font-weight: normal; overflow: hidden; white-space: pre; height: 22px;padding:0.8em;border-bottom-width: 1px; border-bottom-color: inherit; border-bottom-style: solid;}</p>
</p>
<p>However, this modified padding setting does not cause the problem:</p>
<p>.ui-jqgrid tr.jqgrow td {font-weight: normal; overflow: hidden; white-space: pre; height: 22px;padding: 10px 10px 10px 10px;border-bottom-width: 1px; border-bottom-color: inherit; border-bottom-style: solid;}</p>
]]></description>
        	        	<pubDate>Mon, 25 Feb 2013 21:25:09 +0200</pubDate>
        </item>
</channel>
</rss>