简体   繁体   English

自动调整大小在Primefaces 5.3.6的输入文本区域中不起作用

[英]Auto resize not working in input text area in primefaces 5.3.6

I created ap:textArea with autoResize=true (default).The text area should start re-sizing once the content exceeds the described row size. 我使用autoResize = true(默认值)创建了ap:textArea。一旦内容超过所描述的行大小,则文本区域应开始重新调整大小。 It is not re-sizing and scroll bar is also not showing up, instead the text is stacking up and the height of the input text area also not changing. 它没有调整大小,滚动条也没有显示,而是文本堆积了,并且输入文本区域的高度也没有改变。

<p:inputTextarea id="bldgNotes" rows="3" cols="40" counter="counter" maxlength="2550" style="width:96%" counterTemplate="{0} characters remaining." autoResize="true" value="#{buildingBean.originalBuilding.buildingNote}" />

This image shows that auto resize is not happening 此图显示没有自动调整大小

This is a css issue. 这是一个CSS问题。 Check the HTML output and act accordingly. 检查HTML输出并采取相应措施。

mouse on element -> right click -> inspect and check around the classes there might be something like this : 将鼠标悬停在元素上->右键单击->检查并检查类是否可能是这样的:

 resize: none;
 or 
 overflow:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM