Page 1 of 1

Dialog isn't centered when textEditor used

Posted: 18 May 2017, 11:40
by HarryMaster
Hello,

I'm occuring strange issue. When I put textEditor inside dialog, the dialog isn't centered. The workaround is to put textEditor inside outputPanel and specify fixed height for example: <p:outputPanel style="height:400px">

Below is the simplest code example:

Code: Select all

<!DOCTYPE html>
<html lang="en"
	  xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:p="http://primefaces.org/ui">
    <h:head>
        
    </h:head>

    <h:body> 
    	<p:commandButton value="Open" update=":form" onclick="PF('dialogVar').show()" />
		<p:dialog modal="true" header="Test" widgetVar="dialogVar">
			<h:form id="form" >
				<p:textEditor value="#{articlesController.content}" height="400"/>
			</h:form>
		</p:dialog>
	</h:body>
</html>
Does anyone has the same problem?