Home › Forums › JavaScript › Setting (max) widths on certain/specified Fancybox overlays. › Reply To: Setting (max) widths on certain/specified Fancybox overlays.
October 31, 2016 at 4:10 am
#247220
Participant
Yes it’s a lot tricker than I thought it would be haha!
That beforeLoad
looks like it works great though! I tried amending it to:
beforeLoad: function() {
if ($(this.element).hasClass('small')) this.maxWidth = '640';
}
Which looks like it works as well!