fr:number type=xf:decimal width of input field

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

fr:number type=xf:decimal width of input field

mabu
Hi,

why is the width of an fr:number field with type=xf:decimal shorter than using the field with type=xf:integer?
Can I disable this behaviour?

Martin
Reply | Threaded
Open this post in threaded view
|

Re: fr:number type=xf:decimal width of input field

Erik Bruchez
Administrator
Martin,

Until 4.10 included, the Number field did not work at all with xs:integer. If you set the datatype as xs:integer, the field would revert to a plain input field (text field) instead of the Number field.

With 4.11, the Number field binds to xs:decimal as well as xs:integer fields. So the with should now be the same in both cases:

    https://github.com/orbeon/orbeon-forms/issues/2187

The Number field does quite a bit more than the plain input field, including formatting:

    http://doc.orbeon.com/form-runner/component/number.html

This said, you should be able to set the field's width using some CSS.

-Erik
Reply | Threaded
Open this post in threaded view
|

Re: fr:number type=xf:decimal width of input field

mabu
Erik, thank you for clarifying. That sounds good!