<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Inline Popup with YUI</title>
	<atom:link href="http://alexle.net/archives/143/feed" rel="self" type="application/rss+xml" />
	<link>http://alexle.net/archives/143</link>
	<description>Personal View</description>
	<pubDate>Sat, 22 Nov 2008 02:43:31 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: Nik</title>
		<link>http://alexle.net/archives/143#comment-8550</link>
		<dc:creator>Nik</dc:creator>
		<pubDate>Tue, 19 Dec 2006 08:58:03 +0000</pubDate>
		<guid isPermaLink="false">http://alexle.net/archives/143#comment-8550</guid>
		<description>Thanks for using YUI!</description>
		<content:encoded><![CDATA[<p>Thanks for using YUI!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Le</title>
		<link>http://alexle.net/archives/143#comment-1563</link>
		<dc:creator>Alex Le</dc:creator>
		<pubDate>Thu, 26 Oct 2006 04:01:36 +0000</pubDate>
		<guid isPermaLink="false">http://alexle.net/archives/143#comment-1563</guid>
		<description>UPDATE:  In the case of the page is being centered inside a container div with position:relative, the X offset of the popup div will have to be recalculated like this

var sW = YAHOO.util.Dom.getViewportWidth();
sDiv.style.left = ( YAHOO.util.Dom.getX( this ) - ( sW - 800 )/2 ) + 'px' ;

assuming that your maxiumum page width is fixed at 800px.

Cheers!</description>
		<content:encoded><![CDATA[<p>UPDATE:  In the case of the page is being centered inside a container div with position:relative, the X offset of the popup div will have to be recalculated like this</p>
<p>var sW = YAHOO.util.Dom.getViewportWidth();<br />
sDiv.style.left = ( YAHOO.util.Dom.getX( this ) - ( sW - 800 )/2 ) + &#8216;px&#8217; ;</p>
<p>assuming that your maxiumum page width is fixed at 800px.</p>
<p>Cheers!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.265 seconds -->
