Question

I have a dojo text area which I'm binding it to a field. I saw that on browser, its height is OK but if I open the xpage in the Notes client its height is twice bigger. I tried adding height property for the text area, but it doesn't work.

Thanks in advance!

Était-ce utile?

La solution

Browsers Firefox and XPiNC (XPages in Notes Client - that is XULrunner based on Firefox) show Dojo Text Area (dijit.form.Textarea) always with at least two rows even it contains only one line of text.

enter image description here

Other browsers like Chrome and IE work like expected.

enter image description here

You don't have a chance to change that behavior with style "height"/"minHeight" or parameter "rows".

The only solution I found is to create an own Textarea widget. But I am not sure if it's worth it...

This issue shows up only for contents with one line. As soon as you have two or more text lines Dojo Text Area's height adapts exactly - for all browsers.

enter image description here

Autres conseils

Try setting the height using css styles, that should do it.
Update:
In case css should not be working here try using the classic HTML attributes 'cols' and 'rows'. I don't have Domino Designer ata hand right now, so I can't tell whether those attributes are available. If not you could add them yourself using the 'attrs' group.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top