At the moment, i have manually implemented colorbox script into my theme to load page content if is bigger than a certain height.
I use the following code:

var boxHeight = document.getElementById('content').scrollHeight;

if(boxHeight > 267){
	document.getElementById('main').style.display= 'none';
	$(document).ready(function(){
	$.fn.colorbox({inline:'true', href:'#content', width:'860px', onClosed:function(){document.getElementById('hidden_content').style.display= 'block';} });
	});
  }

Is there something similar already built into the colorbox module?

Comments

lsolesen’s picture

Status: Active » Fixed

I am pretty sure that nothing like your solution is build into the module at the moment. If you would like it to, you could try to create a patch.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.