Re: [Zope3-Users] z3c.form, style-attribute of TextWidget, TextAreaWidget

2007-09-05 Thread Andreas Reuleaux
On Tue, Sep 04, 2007 at 02:50:05PM -0400, Stephan Richter wrote:
> Note that we usually solve the problem you are heaving by specifying the input
> element's id as the CSS selector:
>
> input#form-widgets-firstName {
>   width: 105px;
> }

got it

> > Is there any particular reason why this style attribute was left out or is
> > this just a bug? - The same for textarea_input.pt
>
> Bug. It is now fixed in the trunk for all widgets.

and thanks for fixing


-Andreas
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] z3c.form, style-attribute of TextWidget, TextAreaWidget

2007-09-04 Thread Stephan Richter
On Thursday 30 August 2007 08:50, Andreas Reuleaux wrote:
> The widgets do have a style-Attribute after all and this used
> to work in formlib. - However this has no effect when rendering:

Forget formlib and the other older form stuff. ;-) z3c.form does not use that 
at all.

Note that we usually solve the problem you are heaving by specifying the input 
element's id as the CSS selector:

input#form-widgets-firstName {
  width: 105px;
}

> [EMAIL PROTECTED](~/z3eggs/z3c.form-1.6.0-py2.4.egg/z3c/form/browser)$ diff
> -u text_input.pt.ORIG text_input.pt --- text_input.pt.ORIG  2007-08-30
> 01:05:52.0 +0200
> +++ text_input.pt   2007-08-30 13:59:30.0 +0200
> @@ -26,4 +26,5 @@
> accesskey view/accesskey;
> onselect view/onselect;
> size view/size;
> -   maxlength view/maxlength" />
> +   maxlength view/maxlength;
> +   style view/style" />
> [EMAIL PROTECTED](~/z3eggs/z3c.form-1.6.0-py2.4.egg/z3c/form/browser)$
>
> Is there any particular reason why this style attribute was left out or is
> this just a bug? - The same for textarea_input.pt

Bug. It is now fixed in the trunk for all widgets.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users