Small bug fix

This commit is contained in:
Ketan Gupta
2016-07-03 00:37:01 +05:30
parent a3ee0c6708
commit ba57109502

View File

@ -1,6 +1,6 @@
// Your JavaScript
$(function() {
$('.img-center-fill').each(function(){
$('.img-center-fill').load(function(){
var parent = $(this).parent();
var imgClass = (this.width/this.height > parent.width()/parent.height()) ? 'wide' : 'tall';
$(this).addClass(imgClass);