From 48205702d246ae4093df6545c5ec65e46a42efdc Mon Sep 17 00:00:00 2001 From: "Rob G. Healey" Date: Mon, 19 Mar 2012 06:49:44 +0000 Subject: [PATCH] Bug#0002738: NarrativeWeb: strange behaviour with alphabet navigation when used with narrow browser window --> has now been fixed. svn: r19089 --- src/plugins/webreport/NarrativeWeb.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/plugins/webreport/NarrativeWeb.py b/src/plugins/webreport/NarrativeWeb.py index 37ad94757..cd003a40d 100644 --- a/src/plugins/webreport/NarrativeWeb.py +++ b/src/plugins/webreport/NarrativeWeb.py @@ -8384,7 +8384,7 @@ def alphabet_navigation(menu_set): return None, [] num_ltrs = len(sorted_alpha_index) - num_of_cols = 32 + num_of_cols = 26 num_of_rows = ((num_ltrs // num_of_cols) + 1) # begin alphabet navigation division @@ -8393,7 +8393,6 @@ def alphabet_navigation(menu_set): index = 0 for row in xrange(num_of_rows): unordered = Html("ul") - alphabetnavigation += unordered cols = 0 while (cols <= num_of_cols and index < num_ltrs): @@ -8409,12 +8408,11 @@ def alphabet_navigation(menu_set): Html("li", hyper, inline = True) ) - # increase letter/ word in sorted_alpha_index index += 1 cols += 1 num_of_rows -= 1 - # return alphabet navigation, and menu_set to its callers + alphabetnavigation += unordered # EventListPage will reuse sorted_alpha_index return alphabetnavigation, sorted_alpha_index