# HG changeset patch # User Atul Varma # Date 1235862731 28800 # Node ID fb7af41041cc714499ad4a2ed57af2a1a3da8b99 # Parent c48b85f6aff9d08c6a1ddd803f9511e52ac23fed Fixed a bug in the calculation of the width of the page. diff -r c48b85f6aff9 -r fb7af41041cc about-mozilla.js --- 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(