twentytwenty icon indicating copy to clipboard operation
twentytwenty copied to clipboard

Doesn't work inside modal windows

Open ghost opened this issue 10 years ago • 4 comments

What is required for these to work in terms of divs around them?

This plugin will not work when placed inside a modal window... which is a big problem for me. I'm using fancybox, and need to find a way of displaying these sliders to take up the full width of the modal window.

ghost avatar Mar 03 '15 10:03 ghost

I am having the same issue on Bootstrap 3

mpmullally avatar Mar 30 '15 04:03 mpmullally

Also doesn't work when the div is hidden onLoad.

I tried this but doesn't work:

  $(".openthis").click(function() {
    $("#content").show("slow");
    $("#container1").twentytwenty();
  });

ghost avatar Aug 04 '15 06:08 ghost

no one?

maykbrito avatar Nov 20 '17 10:11 maykbrito

I believe the issue is that you cannot initialize twentytwenty until the container is visible. @maykbrito can you create a simple page that has the problem and I will try to debug it.

raphaeleidus avatar Jan 08 '18 20:01 raphaeleidus