<?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: setting font-size in ui.jqgrid.css</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/setting-font-size-in-ui-jqgrid-css</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/setting-font-size-in-ui-jqgrid-css/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on setting font-size in ui.jqgrid.css</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/setting-font-size-in-ui-jqgrid-css#p26767</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/setting-font-size-in-ui-jqgrid-css#p26767</guid>
        	        	<description><![CDATA[<p>Oleg,</p>
</p>
<p>You are right. Fixed.</p>
</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 12 Jun 2012 08:45:49 +0300</pubDate>
        </item>
        <item>
        	<title>OlegK on setting font-size in ui.jqgrid.css</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/setting-font-size-in-ui-jqgrid-css#p26765</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/setting-font-size-in-ui-jqgrid-css#p26765</guid>
        	        	<description><![CDATA[<p>Tony,</p>
<p>I agree, that the usage of <strong>em</strong> instead of <strong>px</strong> would have many advantages. I am afrade that the changes can be not so simple. One have to change many height, margin and padding settings (but not all because in some situations icons with fixed pixel size are used).</p>
<p>My suggesting was about the first small step to improve CSS which uses jqGrid. jqGrid use not only own styles, but also jQuery UI CSS framework. So have have to take in consideration the standard jQuery UI CSS.</p>
<p>The line</p>
<p><input type='button' class='sfcodeselect' name='sfselectit3655' value='Select Code' data-codeid='sfcode3655' /></p>
<div class='sfcode' id='sfcode3655'>.ui-jqgrid {position: relative; font-size:11px;}</div>
<p>from <em>ui.jqgrid.css</em> set <strong>font-size</strong> on the gbox. On the other side gbox div uses <strong>ui-widget ui-widget-content ui-corner-all</strong> classes too. Because of usage of <strong>ui-widget</strong>&#160;the above setting of font-size:11px; will be ovewritten by</p>
<p><input type='button' class='sfcodeselect' name='sfselectit4851' value='Select Code' data-codeid='sfcode4851' /></p>
<div class='sfcode' id='sfcode4851'>.ui-widget .ui-widget { font-size: 1em; }</div>
<p>if jqGrid will be used inside of some jqGrid widget like jQuery UI Tab or Dialog. So one have to implement some kind of fix. The changes in <em>ui.jqgrid.css,</em>&#160;which I suggest will solve the problem.</p>
<p>To be exactly <em>ui.jqgrid.css</em>&#160;has already the parts with</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1981' value='Select Code' data-codeid='sfcode1981' /></p>
<div class='sfcode' id='sfcode1981'>.ui-jqgrid .loading { ... }<br />.ui-jqgrid .ui-jqgrid-pager { ... }<br />.ui-jqgrid .ui-jqgrid-view { ... }</div>
<p>So I suggest just to remove the setting of font-size:11px; from the</p>
<p><input type='button' class='sfcodeselect' name='sfselectit4364' value='Select Code' data-codeid='sfcode4364' /></p>
<div class='sfcode' id='sfcode4364'>.ui-jqgrid {...}</div>
<p>in the parts <strong>.ui-jqgrid .loading { ... }</strong>, <strong>.ui-jqgrid .ui-jqgrid-pager { ... }</strong> and <strong>.ui-jqgrid .ui-jqgrid-view { ... }</strong>.</p>
<p>I thnk that the small chage will make no side effects.</p>
<p>Later one can make more changes in <em>ui.jqgrid.css</em>&#160;and replace the most parts with <strong>px</strong> to <strong>em</strong>. I would find this <span style="text-decoration: underline;">very good</span>, but I find it such changes more complex as what I suggested.</p>
</p>
<p>Best regards<br />Oleg</p>
]]></description>
        	        	<pubDate>Mon, 11 Jun 2012 18:47:58 +0300</pubDate>
        </item>
        <item>
        	<title>tony on setting font-size in ui.jqgrid.css</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/setting-font-size-in-ui-jqgrid-css#p26764</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/setting-font-size-in-ui-jqgrid-css#p26764</guid>
        	        	<description><![CDATA[<p>Hello Oleg,</p>
<p>Sorry.</p>
<p>Here we are</p>
<p><a href="http://filamentgroup.com/lab/retaining_scalable_interfaces_with_pixel_to_em_conversion_archived/" target="_blank">Link1</a></p>
<p>and</p>
<p><a href="http://filamentgroup.com/lab/update_jquery_plugin_for_retaining_scalable_interfaces_with_pixel_to_em_con/" target="_blank">Link2</a></p>
]]></description>
        	        	<pubDate>Mon, 11 Jun 2012 18:25:59 +0300</pubDate>
        </item>
        <item>
        	<title>OlegK on setting font-size in ui.jqgrid.css</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/setting-font-size-in-ui-jqgrid-css#p26763</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/setting-font-size-in-ui-jqgrid-css#p26763</guid>
        	        	<description><![CDATA[<p>Sorry, Tony, but the links which you posted can&#39;t be read.</p>
]]></description>
        	        	<pubDate>Mon, 11 Jun 2012 18:12:38 +0300</pubDate>
        </item>
        <item>
        	<title>tony on setting font-size in ui.jqgrid.css</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/setting-font-size-in-ui-jqgrid-css#p26761</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/setting-font-size-in-ui-jqgrid-css#p26761</guid>
        	        	<description><![CDATA[<p>Hello Oleg,</p>
<p>Thank you, but reading this:</p>
<p><a href="http://filamentgroup.com/lab/update_jquery_plugin_for_retaining_scalable_interfaces_with_pixel_to_em_con/" rel="nofollow" target="_blank"><a href="http://filamentgroup.com/lab/u" rel="nofollow">http://filamentgroup.com/lab/u</a>.....to_em_con/</a></p>
<p>and this</p>
<p><a href="http://filamentgroup.com/lab/retaining_scalable_interfaces_with_pixel_to_em_conversion_archived/" rel="nofollow" target="_blank"><a href="http://filamentgroup.com/lab/r" rel="nofollow">http://filamentgroup.com/lab/r</a>....._archived/</a></p>
</p>
<p>I&#39;m not sure that we shuld change the css this way <img class="spSmiley" style="margin:0" title="Wink" src="/blog/wp-content/forum-smileys/sf-wink.gif" alt="Wink" /></p>
</p>
<p>Regardas</p></p>
]]></description>
        	        	<pubDate>Mon, 11 Jun 2012 18:07:14 +0300</pubDate>
        </item>
        <item>
        	<title>OlegK on setting font-size in ui.jqgrid.css</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/setting-font-size-in-ui-jqgrid-css#p26757</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/setting-font-size-in-ui-jqgrid-css#p26757</guid>
        	        	<description><![CDATA[<p>Hello Tony,</p>
<p>There are some common problem with the font size in case of usage jqGrid inside of other jQuery UI widget. The following</p>
<p><input type='button' class='sfcodeselect' name='sfselectit3627' value='Select Code' data-codeid='sfcode3627' /></p>
<div class='sfcode' id='sfcode3627'>.ui-widget .ui-widget { font-size: 1em; }</div>
<p>CSS used in&#160;<a href="https://github.com/jquery/jquery-ui/blob/1.8.21/themes/base/jquery.ui.theme.css#L17" target="_blank">jQuery UI CSS</a>&#160;ovewrites the CSS setting</p>
<p><input type='button' class='sfcodeselect' name='sfselectit8658' value='Select Code' data-codeid='sfcode8658' /></p>
<div class='sfcode' id='sfcode8658'>.ui-jqgrid {position: relative; font-size:11px;}</div>
<p>used in <strong>ui.jqgrid.css</strong>.</p>
<p>My suggestion is to replace above line which set <strong>font-size</strong> for gbox to the following three lines</p>
<p><input type='button' class='sfcodeselect' name='sfselectit4093' value='Select Code' data-codeid='sfcode4093' /></p>
<div class='sfcode' id='sfcode4093'>.ui-jqgrid .loading { font-size: 11px; }<br />.ui-jqgrid .ui-jqgrid-pager { font-size: 11px; }<br />.ui-jqgrid .ui-jqgrid-view { font-size: 11px; }</div>
<p>In the case the results will be the same as before, but the rule <strong>.ui-widget .ui-widget { font-size: 1em; }</strong> make no problems.</p>
<p>The setting of <strong>font-size</strong> for <strong>.ui-jqdialog</strong> already exist separately so one don&#39;t need to add it as the 4-th rule.</p>
<p>See demo example and some detailes in <a href="http://stackoverflow.com/a/10936623/315935" target="_blank">the answer</a>.</p>
<p>Best regards<br />Oleg</p>
]]></description>
        	        	<pubDate>Mon, 11 Jun 2012 11:11:18 +0300</pubDate>
        </item>
</channel>
</rss>