colorbox icon indicating copy to clipboard operation
colorbox copied to clipboard

Add minWidth configuration option

Open spacecat opened this issue 11 years ago • 3 comments

There is a maxWidth but no minWidth configuration setting.

If you for example have a rather narrow image, the description for that image will overlap with the string "Image 1 of 2".

I tested all the config options available and was not able to set a minWidth.

spacecat avatar Feb 06 '14 18:02 spacecat

Yea I figured out myself a minWidth property would help a lot if you're going for Responsive Webdesign

Coatie avatar Jul 08 '14 10:07 Coatie

This is a duplicate of #159.

matthijskooijman avatar Feb 12 '15 14:02 matthijskooijman

Here is a JS/JQ workaround:

$(document).bind('cbox_complete', function(){ if ($("#colorbox").width() < 350) { $.colorbox.resize({ width: 350 }); } });

flynam avatar Jan 28 '16 09:01 flynam