Cycle 2.75 - containerResize not working if image isn't direct child of container

Cycle 2.75 - containerResize not working if image isn't direct child of container

Say I have:
  1. <script type="text/javascript">
  2.         $(function() {
  3.                 $('.slideshow').cycle();
  4.         });
  5. </script>

  6. <div class="slideshow">
  7.         <div>
  8.                 <img src="test.jpg" />
  9.                 <p>My caption</p>
  10.         </div>
  11.         <div>
  12.                 <img src="test2.jpg" />
  13.                 <p>My caption</p>
  14.         </div>
  15. </div>
I'd like for the container to resize to the largest child size, but it doesn't look like in Safari/Chrome it can do this. It works in Firefox, but only after a refresh of the page. I'm guessing it's to do with the fact that the images aren't the direct child of the container div?

Is it possible for this to work?



    • Topic Participants

    • david