<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1" -->
<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>THE MOLITOR FORUMS &#187; Topic: USER EDIT: ZoomBox scrolling for zoomed-in images</title>
		<link>http://www.themolitor.com/forums/topic/zoombox-zoomin-no-scroll</link>
		<description>THE MOLITOR FORUMS &#187; Topic: USER EDIT: ZoomBox scrolling for zoomed-in images</description>
		<language>en-US</language>
		<pubDate>Wed, 29 Apr 2026 20:34:22 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.themolitor.com/forums/search.php</link>
		</textInput>
		<atom:link href="http://www.themolitor.com/forums/rss/topic/zoombox-zoomin-no-scroll" rel="self" type="application/rss+xml" />

		<item>
			<title>hubit on "USER EDIT: ZoomBox scrolling for zoomed-in images"</title>
			<link>http://www.themolitor.com/forums/topic/zoombox-zoomin-no-scroll#post-41212</link>
			<pubDate>Fri, 17 Mar 2017 09:44:32 +0000</pubDate>
			<dc:creator>hubit</dc:creator>
			<guid isPermaLink="false">41212@http://www.themolitor.com/forums/</guid>
			<description><p>Sorry for the late response. Yes you can see the example</p>
<p><a href="https://goo.gl/BX99AC" rel="nofollow">https://goo.gl/BX99AC</a>
</p></description>
		</item>
		<item>
			<title>THE MOLITOR on "USER EDIT: ZoomBox scrolling for zoomed-in images"</title>
			<link>http://www.themolitor.com/forums/topic/zoombox-zoomin-no-scroll#post-41109</link>
			<pubDate>Wed, 01 Mar 2017 12:03:02 +0000</pubDate>
			<dc:creator>THE MOLITOR</dc:creator>
			<guid isPermaLink="false">41109@http://www.themolitor.com/forums/</guid>
			<description><p>Awesome. Thanks for sharing your customization! I would love to see a working example as well. :-)
</p></description>
		</item>
		<item>
			<title>theeviljam on "USER EDIT: ZoomBox scrolling for zoomed-in images"</title>
			<link>http://www.themolitor.com/forums/topic/zoombox-zoomin-no-scroll#post-41105</link>
			<pubDate>Wed, 01 Mar 2017 05:07:57 +0000</pubDate>
			<dc:creator>theeviljam</dc:creator>
			<guid isPermaLink="false">41105@http://www.themolitor.com/forums/</guid>
			<description><p>Hey, I gave this a try but it didn't seem to work. Have you got a working example anywhere?
</p></description>
		</item>
		<item>
			<title>hubit on "USER EDIT: ZoomBox scrolling for zoomed-in images"</title>
			<link>http://www.themolitor.com/forums/topic/zoombox-zoomin-no-scroll#post-41101</link>
			<pubDate>Wed, 01 Mar 2017 00:00:27 +0000</pubDate>
			<dc:creator>hubit</dc:creator>
			<guid isPermaLink="false">41101@http://www.themolitor.com/forums/</guid>
			<description><p>I forgot to mention that the javascript code is located at line 224 on #imgBox click function.
</p></description>
		</item>
		<item>
			<title>hubit on "USER EDIT: ZoomBox scrolling for zoomed-in images"</title>
			<link>http://www.themolitor.com/forums/topic/zoombox-zoomin-no-scroll#post-41100</link>
			<pubDate>Tue, 28 Feb 2017 23:56:58 +0000</pubDate>
			<dc:creator>hubit</dc:creator>
			<guid isPermaLink="false">41100@http://www.themolitor.com/forums/</guid>
			<description><p>Hello, I came up with a solution for this problem. Its not the best code but its working. I thought that it could help someone with the same problem.</p>
<pre><code>//wp-content/plugins/zoom_box/zoom_box.js
//First we get the image height and width
var image = new Image();
image.src = imageSrc;

var width = image.width,
    height = image.height;

//calculate the aspect ratio
var imgBoxWidth = jQuery(&#039;#imgBox&#039;).width();
var aspectRatio = width / height;
var imgHeight = imgBoxWidth/aspectRatio;

//this works on second zoom only, sets the container height and backgroun size
if(jQuery(&#039;#zoomBox.zoomOut&#039;).length)
   jQuery(&#039;#zoomBox #imgBox&#039;).css({&#039;height&#039;: imgHeight, &#039;background-size&#039;: &#039;100% &#039; + imgHeight + &#039;px&#039;});
else
   jQuery(&#039;#zoomBox #imgBox&#039;).css({&#039;height&#039;: &#039;&#039;, &#039;background-size&#039;: &#039;&#039;});</code></pre>
<p>Finally add this to your custom css</p>
<pre><code>.zoomOut{
	overflow: auto;
}</code></pre></description>
		</item>

	</channel>
</rss>
