*Original :*
def xml(self):
name = self.attributes.get('_name', None)
if name and hasattr(self, 'errors') \
and self.errors.get(name, None) \
and self['hideerror'] != True:
return DIV.xml(self) + DIV(self.errors[name], _class='error',
errors=None, _id='%s__error' % name).xml()
else:
return DIV.xml(self)
*Proposed change :*
Line : 1612
def xml(self):
name = self.attributes.get('_name', None)
if name and hasattr(self, 'errors') \
and self.errors.get(name, None) \
and self['hideerror'] != True:
*return DIV.xml(self) + DIV(DIV(self.errors[name],
_class='error',*
* errors=None, _id='%s__error' % name, _style='display:
inline-block;'),_style='display: block;').xml()*
else:
return DIV.xml(self)
I set the _style here... But it get set somewhere else I don't where, that
why I set it here.
Thank
Richard
On Fri, Mar 2, 2012 at 12:00 PM, Richard <[email protected]>wrote:
> Hello,
>
> Could we consider this change :
>
> Wrapping error div inside an other div?
>
> Reason :
>
> Allow auto width of error box base on length of error message.
>
> Try this with chrome dev tool on a triggered validator page :
>
> <div style="block;"> <!-- error box wrapper --> <div class="error"
> id="myfield__error" style="display: inline-block; ">field can't be
> empty</div> <!-- change to the actual error box : style="display:
> inline-block; " --> </div>
>
> I think it will work every where 3cols 2cols and divs... I try it with 3
> cols and divs.
>
> Thanks
>
> Richard
>