<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>geedew &#187; web development</title>
	<atom:link href="http://www.geedew.com/tag/web-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.geedew.com</link>
	<description>flirting with the accessible web</description>
	<lastBuildDate>Wed, 13 Apr 2011 22:46:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>jQuery Dialog Shadow Issues.</title>
		<link>http://www.geedew.com/2009/03/01/jquery-dialog-shadow-issues/</link>
		<comments>http://www.geedew.com/2009/03/01/jquery-dialog-shadow-issues/#comments</comments>
		<pubDate>Sun, 01 Mar 2009 07:12:20 +0000</pubDate>
		<dc:creator>drew</dc:creator>
				<category><![CDATA[How-To]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://geedew.com/?p=30</guid>
		<description><![CDATA[While working on a dialog in the new jQuery UI 1.6rc6.  I have come accross an issue. If you were to open a dialog, and then dynamically change the content in the dialog, the shadow border will not resize.  The (&#8230;)</p><p><a href="http://www.geedew.com/2009/03/01/jquery-dialog-shadow-issues/">Read the rest of this entry &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>While working on a dialog in the new jQuery UI 1.6rc6.  I have come accross an issue.</p>
<p>If you were to open a dialog, and then dynamically change the content in the dialog, the shadow border will not resize.  The problem is, the code does not &#8216;know&#8217; the box is larger, and is not able to watch for the changes.   Their have been some solutions that I have found to solve this, like turning off shadows, etc.  But I think I have a better one, a 3-line solution so to speak<br />
Go into your code, mine is in my jquery-ui-personalized-1.6rc6.js file&#8230; Also could be in ui.dialog.js etc.</p>
<p>Inside the code (mine is line 4218) after this function</p>
<pre class="brush: plain; title: ; notranslate">

$.widget(&quot;ui.dialog&quot;, {

_init: function() {
</pre>
<p>add this function</p>
<pre class="brush: plain; title: ; notranslate">

refresh: function() {
this._refreshShadow(1);
},
</pre>
<p>Then from within your code you can call something like this&#8230;</p>
<pre class="brush: plain; title: ; notranslate">$(&quot;#dialogbox&quot;).dialog(&quot;refresh&quot;);</pre>
<p>Check for updates, I may write a drop-in style patch so the coding isn&#8217;t necessary.</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.geedew.com/2009/03/01/jquery-dialog-shadow-issues/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

