<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: LightWindow IE6 bug &#8211; image size (resizeTo)</title>
	<atom:link href="http://www.rtraction.com/blog/devit/lightwindow-image-sizing-bug-in-ie6-on-first-click-of-gallery.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.rtraction.com/blog/devit/lightwindow-image-sizing-bug-in-ie6-on-first-click-of-gallery.html</link>
	<description>rtraction blog - Web Design, Web Development and Strategic Consulting</description>
	<lastBuildDate>Fri, 02 Dec 2011 15:59:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: phobos</title>
		<link>http://www.rtraction.com/blog/devit/lightwindow-image-sizing-bug-in-ie6-on-first-click-of-gallery.html/comment-page-1#comment-36441</link>
		<dc:creator>phobos</dc:creator>
		<pubDate>Thu, 04 Mar 2010 14:21:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.rtraction.com/blog/devit/lightwindow-image-sizing-bug-in-ie6-on-first-click-of-gallery.html#comment-36441</guid>
		<description>&quot;this.imageCount–;&quot; should be &quot;this.imageCount–-;&quot; (two times minus! Seems that your website has eaten it.)</description>
		<content:encoded><![CDATA[<p>&#8220;this.imageCount–;&#8221; should be &#8220;this.imageCount–-;&#8221; (two times minus! Seems that your website has eaten it.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: phobos</title>
		<link>http://www.rtraction.com/blog/devit/lightwindow-image-sizing-bug-in-ie6-on-first-click-of-gallery.html/comment-page-1#comment-36440</link>
		<dc:creator>phobos</dc:creator>
		<pubDate>Thu, 04 Mar 2010 14:18:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.rtraction.com/blog/devit/lightwindow-image-sizing-bug-in-ie6-on-first-click-of-gallery.html#comment-36440</guid>
		<description>I wonder whether the code works, because the if and else statement are the same! Moreover, you&#039;ve duplicated the code for nothing! It would be better to write:
var imgLoaded;
if(ie){
	imgLoaded = $(&#039;lightwindow_image_&#039;+i).complete;
}else{
	imgLoaded = (!(typeof $(&#039;lightwindow_image_&#039;+i).naturalWidth != &quot;undefined&quot; &amp;&amp; $(&#039;lightwindow_image_&#039;+i).naturalWidth == 0));
}
if(imgLoaded){
 this.checkImage[i].stop();
						
 var imageHeight = $(&#039;lightwindow_image_&#039;+i).getHeight();
  if (imageHeight &gt; this.resizeTo.height) {
  this.resizeTo.height = imageHeight;
 }
 this.resizeTo.width += $(&#039;lightwindow_image_&#039;+i).getWidth();
 this.imageCount--;
					
 $(&#039;lightwindow_image_&#039;+i).setStyle({height: &#039;100%&#039;, width: &#039;100%&#039;});
		
 if (this.imageCount == 0) {this._processWindow();}
}</description>
		<content:encoded><![CDATA[<p>I wonder whether the code works, because the if and else statement are the same! Moreover, you&#8217;ve duplicated the code for nothing! It would be better to write:<br />
var imgLoaded;<br />
if(ie){<br />
	imgLoaded = $(&#8216;lightwindow_image_&#8217;+i).complete;<br />
}else{<br />
	imgLoaded = (!(typeof $(&#8216;lightwindow_image_&#8217;+i).naturalWidth != &#8220;undefined&#8221; &amp;&amp; $(&#8216;lightwindow_image_&#8217;+i).naturalWidth == 0));<br />
}<br />
if(imgLoaded){<br />
 this.checkImage[i].stop();</p>
<p> var imageHeight = $(&#8216;lightwindow_image_&#8217;+i).getHeight();<br />
  if (imageHeight &gt; this.resizeTo.height) {<br />
  this.resizeTo.height = imageHeight;<br />
 }<br />
 this.resizeTo.width += $(&#8216;lightwindow_image_&#8217;+i).getWidth();<br />
 this.imageCount&#8211;;</p>
<p> $(&#8216;lightwindow_image_&#8217;+i).setStyle({height: &#8216;100%&#8217;, width: &#8216;100%&#8217;});</p>
<p> if (this.imageCount == 0) {this._processWindow();}<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: IK</title>
		<link>http://www.rtraction.com/blog/devit/lightwindow-image-sizing-bug-in-ie6-on-first-click-of-gallery.html/comment-page-1#comment-33799</link>
		<dc:creator>IK</dc:creator>
		<pubDate>Tue, 05 Jan 2010 05:37:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.rtraction.com/blog/devit/lightwindow-image-sizing-bug-in-ie6-on-first-click-of-gallery.html#comment-33799</guid>
		<description>Thank you, saved my day.
BTW, the problem is still there with IE 8 as well.</description>
		<content:encoded><![CDATA[<p>Thank you, saved my day.<br />
BTW, the problem is still there with IE 8 as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthew</title>
		<link>http://www.rtraction.com/blog/devit/lightwindow-image-sizing-bug-in-ie6-on-first-click-of-gallery.html/comment-page-1#comment-28633</link>
		<dc:creator>Matthew</dc:creator>
		<pubDate>Fri, 04 Sep 2009 21:15:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.rtraction.com/blog/devit/lightwindow-image-sizing-bug-in-ie6-on-first-click-of-gallery.html#comment-28633</guid>
		<description>Fantastic. thank you for this fix, I was pulling my hair out (what&#039;s left of it) looking through the script to find this. Also yes your &amp; and &gt; are still not showing up correctly</description>
		<content:encoded><![CDATA[<p>Fantastic. thank you for this fix, I was pulling my hair out (what&#8217;s left of it) looking through the script to find this. Also yes your &amp; and &gt; are still not showing up correctly</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: leon</title>
		<link>http://www.rtraction.com/blog/devit/lightwindow-image-sizing-bug-in-ie6-on-first-click-of-gallery.html/comment-page-1#comment-26839</link>
		<dc:creator>leon</dc:creator>
		<pubDate>Wed, 15 Jul 2009 23:28:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.rtraction.com/blog/devit/lightwindow-image-sizing-bug-in-ie6-on-first-click-of-gallery.html#comment-26839</guid>
		<description>thanks for this - this bug has been following me like a dog.

BTW you still have &amp; and &gt; in your post code

Marc you just need to co a find and replace on &amp; = &amp;  and &gt; = &gt;  and it will work again</description>
		<content:encoded><![CDATA[<p>thanks for this &#8211; this bug has been following me like a dog.</p>
<p>BTW you still have &amp; and &gt; in your post code</p>
<p>Marc you just need to co a find and replace on &amp; = &amp;  and &gt; = &gt;  and it will work again</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marc</title>
		<link>http://www.rtraction.com/blog/devit/lightwindow-image-sizing-bug-in-ie6-on-first-click-of-gallery.html/comment-page-1#comment-10715</link>
		<dc:creator>Marc</dc:creator>
		<pubDate>Mon, 08 Sep 2008 17:42:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.rtraction.com/blog/devit/lightwindow-image-sizing-bug-in-ie6-on-first-click-of-gallery.html#comment-10715</guid>
		<description>This opens in a new window full size and not in lightwindow. Is there anything I can do to make it open in a lightwindow?</description>
		<content:encoded><![CDATA[<p>This opens in a new window full size and not in lightwindow. Is there anything I can do to make it open in a lightwindow?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy</title>
		<link>http://www.rtraction.com/blog/devit/lightwindow-image-sizing-bug-in-ie6-on-first-click-of-gallery.html/comment-page-1#comment-10709</link>
		<dc:creator>Jeremy</dc:creator>
		<pubDate>Mon, 08 Sep 2008 14:39:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.rtraction.com/blog/devit/lightwindow-image-sizing-bug-in-ie6-on-first-click-of-gallery.html#comment-10709</guid>
		<description>Sorry about that.  I&#039;ve corrected them now.  That&#039;s something to always watch out for with these WYSIWYG editors.  Had to change that stuff in the code view.</description>
		<content:encoded><![CDATA[<p>Sorry about that.  I&#8217;ve corrected them now.  That&#8217;s something to always watch out for with these WYSIWYG editors.  Had to change that stuff in the code view.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: john</title>
		<link>http://www.rtraction.com/blog/devit/lightwindow-image-sizing-bug-in-ie6-on-first-click-of-gallery.html/comment-page-1#comment-10697</link>
		<dc:creator>john</dc:creator>
		<pubDate>Mon, 08 Sep 2008 00:33:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.rtraction.com/blog/devit/lightwindow-image-sizing-bug-in-ie6-on-first-click-of-gallery.html#comment-10697</guid>
		<description>be careful for them &amp;s and &gt;s - they got converted in the post</description>
		<content:encoded><![CDATA[<p>be careful for them &amp;s and &gt;s &#8211; they got converted in the post</p>
]]></content:encoded>
	</item>
</channel>
</rss>

