Mercurial > about-mozilla-redesign
changeset 8:fb7af41041cc
Fixed a bug in the calculation of the width of the page.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Sat, 28 Feb 2009 15:12:11 -0800 |
parents | c48b85f6aff9 |
children | 061eee7cffe6 |
files | about-mozilla.js |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/about-mozilla.js Sat Feb 28 15:03:15 2009 -0800 +++ b/about-mozilla.js Sat Feb 28 15:12:11 2009 -0800 @@ -22,16 +22,16 @@ $("#issue").fadeIn(); var tallestHeight = 0; - $(".entry").each( + var entries = $("#issue .entry"); + entries.each( function(i) { var height = $(this).height(); if (height > tallestHeight) tallestHeight = height; } ); - $(".entry").height(tallestHeight); - $(document.body).width($(".entry").width() * - $(".entry").length); + entries.height(tallestHeight); + $(document.body).width(entries.outerWidth() * entries.length); } $(window).ready(