Mercurial > mozilla-the-big-picture
changeset 36:2c5d734e1d2c
Allow max-width/max-height of CSS to propagate.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Fri, 11 Dec 2009 15:14:23 -0800 |
parents | 9c34b211740a |
children | ddab6ae20001 |
files | mbp.js |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mbp.js Fri Dec 11 14:58:31 2009 -0800 +++ b/mbp.js Fri Dec 11 15:14:23 2009 -0800 @@ -34,6 +34,10 @@ crop.height = crop.bottom - crop.top; var canvas = document.createElement("canvas"); var self = $(this.parentNode).clone(); + + // Allow max-width/max-height of CSS to propagate. + self.find("img").removeAttr("width").removeAttr("height"); + $(canvas).mouseenter( function() { $("#images").empty();