views:

51

answers:

2

Hi,

So i'm using the colorbox plugin for a contact form. I am just the default colorbox properties, so it should automatically adjust to the div it contains (right?).

Well There is a small vertical scroll bar on this colorbox content when its FIRST loaded. I've seen it happen sporatically in Firefox and chrome for OSX

example - scroll to bottom and click the contact link.

attempt #1

$("a.modalAutosize").each(function(){
    $(this).colorbox();

});

active code on example

$("a.modalAutosize").each(function(){
    $(this).colorbox({onOpen: function(){$.fn.colorbox.resize()}});

});
+1  A: 
$("a.modalAutosize").each(function(){
   $(this).colorbox();  
});

You dont need to write each() fucntion here. You can make scrolling off.

eg.

$("a.modalAutosize").colorbox({scrolling: false});
Mayur bhalgama
A: 

I'm having the same problem. It seems to happen completely at random and I have not been able to reproduce it... Did you find a definitive solution?

Diego