Skip to content

Commit 7e87f23

Browse files
committed
Fixed issue that could initially position the element wrong if an image was loaded late.
1 parent f043d69 commit 7e87f23

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

jquery.flexverticalcenter.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929

3030
// Call on resize. Opera debounces their resize by default.
3131
$(window).resize(resizer);
32+
33+
// Apply a load event to images within the element so it fires again after an image is loaded
34+
$this.find('img').load(resizer);
3235

3336
});
3437

0 commit comments

Comments
 (0)