From bc0b290769a852df04eb9bf9e2cf1bc918c28314 Mon Sep 17 00:00:00 2001 From: James Elliott Date: Thu, 15 Sep 2011 11:59:28 -0400 Subject: [PATCH] Issue #1280520: Add an onComplete callback to the colorbox to ensure that it has the correct size --- colorbox-display.js | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/colorbox-display.js b/colorbox-display.js index 2ea49a2..195ce1f 100644 --- a/colorbox-display.js +++ b/colorbox-display.js @@ -33,7 +33,11 @@ Drupal.behaviors.mediaGalleryColorbox.attach = function (context, settings) { // http://groups.google.com/group/colorbox/msg/7671ae69708950bf title: ' ', transition: 'fade', - preloading: true + preloading: true, + fastIframe: false, + onComplete: function () { + $(this).colorbox.resize(); + } }); } $('a.meta-wrapper').bind('click', Drupal.mediaGalleryColorbox.metaClick); -- 1.7.4.msysgit.0