--- a/web/facet.py Mon Mar 02 20:44:14 2009 +0100
+++ b/web/facet.py Mon Mar 02 21:03:54 2009 +0100
@@ -506,10 +506,7 @@
def _render(self):
title = html_escape(self.facet.title)
facetid = html_escape(self.facet.id)
- if len(self.items) > 6:
- self.w(u'<div id="%s" class="facet overflowed">\n' % facetid)
- else:
- self.w(u'<div id="%s" class="facet">\n' % facetid)
+ self.w(u'<div id="%s" class="facet">\n' % facetid)
self.w(u'<div class="facetTitle" cubicweb:facetName="%s">%s</div>\n' %
(html_escape(facetid), title))
if self.facet.support_and():
@@ -522,6 +519,8 @@
cssclass = ''
if not self.facet.start_unfolded:
cssclass += ' hidden'
+ if len(self.items) > 6:
+ cssclass +=' overflowed'
self.w(u'<div class="facetBody%s">\n' % cssclass)
for item in self.items:
item.render(self.w)