Explorar o código

Update to call fullScreenImages() after all assets load

Chris Runnells %!s(int64=6) %!d(string=hai) anos
pai
achega
9e4aece69c
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      radcliffe-2/assets/js/radcliffe-2.js

+ 5 - 0
radcliffe-2/assets/js/radcliffe-2.js

@@ -70,6 +70,11 @@
 		fullScreenImages();
 	});
 
+	// One more time after everything (eg: Custom Fonts) has loaded for better height accuracy
+	$( window ).load( function() {
+		fullScreenImages();
+	});
+
 	// On window resize.
 	$( window ).on( 'resize', function() {
 		fullScreenImages();