Carsten wants to have the exact number of pixels, I heavily suppose ;)

There is javascript functionality e.g. in Dojo which counts the
character which fit in a specified width - you could try applying a
function like this.

regards,

Martin

On 8/8/07, Matthias Wessendorf <[EMAIL PROTECTED]> wrote:
> is that Firefox only ?
>
> try something like width: 90%;
>
> :-)
>
> On 8/8/07, Carsten Pieper <[EMAIL PROTECTED]> wrote:
> >
> > Hello everyone,
> >
> > is this a bug or am I missing something? The situation is as follows:
> >
> >         <tr:inputText label="My short inputText" value="Hello inputText"
> >                 contentStyle="width: 50px;" readOnly="true">
> >         </tr:inputText>
> >
> > The text then exceeds the actual text area as shown in the screenshot (note
> > that
> > the read-only text area background is slightly darker than the rest...).
> >
> > http://www.nabble.com/file/p12049157/inputTextReadOnly.jpg
> >
> > If readOnly isn't set (or false), then everything is as expected as again
> > shown in the screenshot (only 50 px of text are shown, but you can access
> > the rest via mouse/keyboard):
> >
> > http://www.nabble.com/file/p12049157/inputText.jpg
> >
> > Any ideas?
> >
> > Thanks in advance,
> > Carsten
> >
> >
> > --
> > View this message in context: 
> > http://www.nabble.com/-Trinidad--inputText-with-readOnly%3D%22true%22-and-limited-width-shows-strange-behaviour-tf4234891.html#a12049157
> > Sent from the MyFaces - Users mailing list archive at Nabble.com.
> >
> >
>
>
> --
> Matthias Wessendorf
>
> further stuff:
> blog: http://matthiaswessendorf.wordpress.com/
> mail: matzew-at-apache-dot-org
>


-- 

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

Reply via email to