title: How to initialize primefaces scrollPanel
body: <p>When "text" variable is too long and doesn't fit the screen,At first dialog load ScrollPanel is not rendering. After I resize the dialog, It appears. Is there any solution?</p>
  
  <pre><code>&lt;p:dialog id="logDetailsDialogId" header="Log Details" appendToBody="true"                
                    widgetVar="logDialog" resizable="true"&gt;  
      &lt;p:scrollPanel&gt;
          &lt;h:outputText value="#{myController.text}"/&gt;
      &lt;/p:scrollPanel&gt;
  &lt;/p:dialog&gt;
  </code></pre>