Re: TextArea Horizontal Scrolling

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • RFleming@nationalsteel.com

    Re: TextArea Horizontal Scrolling

    I attempted to use the advice below, but still I keep getting word
    wrap in my inputtextarea. I am very new to XML and CSS, and I do not
    totally understand the layout. Below is the single XML line I am
    modifying:

    <h:inputTextare a binding="#{Race Report.txtRider Info}" wordWrap="true"
    id="txtRiderInf o" style="border-width: 2px; border-style: solid; font-
    family: 'Courier New','Courier', monospace; font-size: 12px; height:
    75%; left: 24px; top: 144px; position: absolute; width: 96%; overflow-
    x: scroll"/>

    I have tried all the suggestionss below, but am not exactly sure how
    <textarea no-wrap></textareashould be used. For example if
    <txtRiderInfo no-wrap></txtRiderInfois correct, than I also tried
    that method with no luck either. For some reason the horizontal
    scroll bar is greyed out, and the text wraps. Any additional advice
    would be greatly appreciated!

    Thanks

    Ryan

    >
    try one or a combination of following css rules
    >
    textarea { overflow: auto; }
    textarea { width: 90% }
    textarea { white-space: pre; }    /* no wrap         */
    textarea { overflow-x: scroll; }  /* horizontal lift */
    >
    or (not more allowed) :
        <textarea no-wrap></textarea>
    >
    --
    sm
  • nate

    #2
    Re: TextArea Horizontal Scrolling

    I see you have the code
    wordWrap="true"
    maybe try changing that to "false"

    Comment

    Working...