user3663882
user3663882

Reputation: 7367

Make size of the popup large enough to contain its element

I'm on RichFAces 4.5.2.Final, JSF 2.1. I need to make a popupPanel auto-adjustable to any change of embedded textAreas. Let's consider the following markup:

<rich:popupPanel id="editMailingTemplatePopup"  autosized="true">
    <h:inputTextarea value="#{editMailingTemplateController.template.name}" maxlength="128" size="80" />
</rich:popupPanel>

When I try to change the size of the textArea the size of the popupPanel is not being changed in spite of setting autosized attribute to true. Is it a solvable problem within JSF/RichFaces context or I should write javascript code?

Upvotes: 0

Views: 1327

Answers (1)

Bhavin Panchani
Bhavin Panchani

Reputation: 1352

Following is works for me :

Add css as below :

.rf-pp-cnt-scrlr{
    width: auto !important;
    height: auto !important;
} 
.rf-pp-cntr{
 width: auto !important;
 height: auto !important;
} 

Upvotes: 1

Related Questions