<?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: Make error/info dialog window position centered</title>
	<link>http://www.trirand.com/blog/?page_id=393/feature-request/make-errorinfo-dialog-window-position-centered</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/feature-request/make-errorinfo-dialog-window-position-centered/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Vity on Make error/info dialog window position centered</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/make-errorinfo-dialog-window-position-centered#p28082</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/make-errorinfo-dialog-window-position-centered#p28082</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>I suggest a minor improvement</p>
</p>
<p>When you edit a long list, by default (without these changes), dialogs pop up on the top of the page, which is very unconvenient.</p>
</p>
<p>Here is my proposal fix:</p>
<p>In function:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2015' value='Select Code' data-codeid='sfcode2015' /></p>
<div class='sfcode' id='sfcode2015'>info_dialog : function(caption, content,c_b, modalopt) {</div>
</p>
<p>edit these lines:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9004' value='Select Code' data-codeid='sfcode9004' /></p>
<div class='sfcode' id='sfcode9004'>
<p>&#160;<strong>var width = 290; //default width<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; var height = 300; //default theoretical height</strong></p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; var left2 = window.pageXOffset + parseInt(($(window).width()/2) &#8211; (width/2));<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; var top2 = window.pageYOffset + parseInt(($(window).height()/2) &#8211; (height/2));</p>
<p>&#160;&#160;&#160; var mopt = {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;width:290,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;height:&#39;auto&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;dataheight: &#39;auto&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;drag: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;resize: false,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;caption:&#34;&#60;b&#62;&#34;+caption+&#34;&#60;/b&#62;&#34;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; <strong>&#160;left:left2,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;top:top2,</strong><br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;zIndex : 1000,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;jqModal : true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;modal : false,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;closeOnEscape : true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;align: &#39;center&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;buttonalign : &#39;center&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;buttons : []<br />&#160;&#160; &#160;&#160;&#160; &#160;// {text:&#39;textbutt&#39;, id:&#34;buttid&#34;, onClick : function(){&#8230;}}<br />&#160;&#160; &#160;&#160;&#160; &#160;// if the id is not provided we set it like info_button_+ the index in the array &#8211; i.e info_button_0,info_button_1&#8230;<br />&#160;&#160; &#160;&#160;&#160; &#160;};</p>
</div>
]]></description>
        	        	<pubDate>Mon, 21 Jan 2013 09:19:11 +0200</pubDate>
        </item>
</channel>
</rss>