# HG changeset patch # User Sylvain Thénault # Date 1249639832 -7200 # Node ID d38c2b01d766d2af3ec4bdff9cea8acc4dd6e53f # Parent 4a8d93bd7c72badca62d1774020fed0ee32faefb don't set display: block on hidden input diff -r 4a8d93bd7c72 -r d38c2b01d766 web/formfields.py --- a/web/formfields.py Thu Aug 06 09:40:40 2009 +0200 +++ b/web/formfields.py Fri Aug 07 12:10:32 2009 +0200 @@ -283,7 +283,8 @@ format_field = self.get_format_field(form) if format_field: # XXX we want both fields to remain vertically aligned - format_field.widget.attrs['style'] = 'display: block' + if format_field.is_visible(): + format_field.widget.attrs['style'] = 'display: block' result = format_field.render(form, renderer) else: result = u''