From 5b291d48344a6f0eea45a7314c55183ff221b979 Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 20 Feb 2013 00:26:08 +0530 Subject: [PATCH] fix statistics dialog --- static/js/pandora/statisticsDialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/pandora/statisticsDialog.js b/static/js/pandora/statisticsDialog.js index 9e82f609..07d4b0a3 100644 --- a/static/js/pandora/statisticsDialog.js +++ b/static/js/pandora/statisticsDialog.js @@ -350,7 +350,7 @@ pandora.ui.statisticsDialog = function() { top: top + 'px' }) .appendTo($content); - top += (isDay ? 30 : Ox.len(data[mode][key])) * 16 + 32; + top += (isDay ? Ox.min(Ox.len(data[mode].day), 30) : Ox.len(data[mode][key])) * 16 + 32; }); } else if (id == 'locations') { ['continent', 'region', 'country', 'city'].forEach(function(key) {