Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

colorbox resize

In reference to another question I found : How can I dynamically resize the jQuery Colorbox plugin?

If I wanted to resize the colorbox inside of a callback, how would I call it? Also, would it be possible disable scrolling until the resize was complete, then enable it?

    $("a[rel='colorbox']").colorbox({
        onComplete: function() {
            ????.colorbox.resize(); // what in the world goes here to get the colorbox?
        },
        preloading: true
    });
like image 202
Ciel Avatar asked Jun 09 '26 18:06

Ciel


1 Answers

$.fn.colorbox.resize() works as well.

like image 103
Derek Adair Avatar answered Jun 12 '26 13:06

Derek Adair



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!