daneden / Baseline.js

A simple jQuery plugin for restoring vertical baselines thrown off by odd image sizes
http://daneden.me/baseline
699 stars 55 forks source link

Include padding in image height calculation #7

Closed craigmdennis closed 12 years ago

craigmdennis commented 12 years ago

Sometimes images have a 'frame' around them. Padding and a border. Using outerHeight() instead of height() includes these. I also converted tabs to spaces as both were present.