improved email scale img

This commit is contained in:
Jeff Atwood 2014-11-14 17:28:36 -08:00
parent befe0dce89
commit 5b737830af

View File

@ -38,7 +38,7 @@ module Email
img['height'] = 20
else
# having no extra style on email images might work best?
if img['width'].to_i > 250 and img['height'].to_i > 250
if img['width'].to_i > 400 or img['height'].to_i > 400
img['width'] = 'auto'
img['height'] = 'auto'
end