How do I control the size of a HTML Text Box?

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

How do I control the size of a HTML Text Box?

khh7112
For a normal text box in form-builer, I would add the following to the form when I was done:
   
    <xhtml:style type="text/css">textarea.xforms-textarea, .xforms-textarea textarea { height: 25em; line-height: 1em }       
       </xhtml:style>

This would make the size of the textbox 25lilnes.   But the HTML Text widget does not seem to honor this.


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: How do I control the size of a HTML Text Box?

khh7112
More Details:

The size of the Rich Text (HTML) box does increase.  But the scrollbar on the right side, stays at the original height.  So even though the box is bigger, you still only see a small portion of the text.
Reply | Threaded
Open this post in threaded view
|

Re: How do I control the size of a HTML Text Box?

khh7112
Further details:  I changed the style type to be this:

       <style type="text/css">.line20 { height: 25em; line-height: 1em; font-size: 20px;}</style> 


And modified the textarea definition to use this new class:
                                <xforms:textarea xmlns:xbl="http://www.w3.org/ns/xbl"
                                                 xmlns:fb="http://orbeon.org/oxf/xml/form-builder"
                                                 <b>class="line20"
                                                 mediatype="text/html"
                                                 bind="HTML_DispatchNotes-bind"
                                                 id="HTML_DispatchNotes-control">
                                    <xforms:label ref="$form-resources/HTML_DispatchNotes/label"/>
                                    <xforms:hint ref="$form-resources/HTML_DispatchNotes/hint"/>
                                    <xforms:help ref="$form-resources/HTML_DispatchNotes/help"/>
                                    <xforms:alert ref="$fr-resources/detail/labels/alert"/>
                                </xforms:textarea>