java - Primefaces ConfirmDialog not vertically centered in form updated with ajax -


I have a form that "increases" when some operations are clicked through Ajax + Rendered. The problem is that my P: confirmDialog is not vertical when the form grows.

  • Remove or add the attribute "appendToBody"
  • When in "normal size", the dialog is centered correctly.

  • Overwrite the "Top" in the CSS

Is this an issue from Primates (currently using V4) Or am I doing something wrong? Since I use a lot of "rendered" features, do I want to "re-submit" the dialog?

Here is a snippet of my code.

  & lt; H: form id = "myForm" & gt; & Lt; P: Field Set Legend = "Hello" & gt; & Lt ;! - Many things here - & gt; & Lt; / P: fieldset & gt; & Lt; P: spacer height = "20px" /> & Lt; P: FieldSet Legend = "Dashboard" ID = "This OnMakek The Formuli" is provided = "# {Beninduind or Bean Edit}" & gt; & Lt ;! - This is a lot of items, the page increases when the 'rendered' feature is true - & gt; & Lt; / P: fieldset & gt; & Lt; / H: form & gt; & Lt; P: confirmDialog global = "true" id = "meuConfirmDlg" appendobod = "true" show effect = "fade" width = "500px" hiddenffect = "fade" widgetVar = "confirmDlg" shutdown = "incorrect" & gt; & Lt; P: command button value = "yes" type = "button" style class = "ui-confirmdialog-yes" icon = "ui-icon-check" /> & Lt; P: Command Button Value = "No" Type = "Button" style class = "ui-confirmdialog-no" icon = "ui-icon-close" /> & Lt; / P: confirmDialog & gt;  

Did you overwrite the top attribute of the dialog box from percentages? If not, please overwrite the CSS of Dialog Box Divisions.

  #dialogBoxId {top: 50%! Important; Left: 50% important! }  

Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -