With the option 'scalePhotos' you set the image in the center. That works just fine on first load of the colorbox.
The issue is on resize method. While changing the size of the window or (in my case) changing the orientation of a mobile device the resize method never changes the calculated margin-top attribute while using the "old" calculated one. I have to do this on my own after resizing.
Is it possible to add the new calculated margin-top on resize method?
With the option 'scalePhotos' you set the image in the center. That works just fine on first load of the colorbox.
The issue is on resize method. While changing the size of the window or (in my case) changing the orientation of a mobile device the resize method never changes the calculated margin-top attribute while using the "old" calculated one. I have to do this on my own after resizing.
Is it possible to add the new calculated margin-top on resize method?