Dialog isn't centered when textEditor used

Components, Ajax Framework, Utilities and More.
Post Reply
HarryMaster
Posts: 5
Joined: 08 Jan 2017, 19:20

18 May 2017, 11:40

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?
Primefaces 6.1
Mojarra 2.2.14

Post Reply
  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 16 guests