help Dialog Framework

UI Components for JSF
Post Reply
agroprime
Posts: 1
Joined: 25 Jan 2016, 14:47

27 May 2016, 21:33

I doubt you can actually be a bug.

I am using the dialog framework to display a dialog. But I am having trouble placing my dialog on top. the dialogs are displayed in the middle of the screen down, I tested in all browsers to function'm having to set this css

ui-dialog {
    top: 0px! important;
}

but this way is global for all dialogs, analyzing the source dialog.js

Code: Select all

  
// offset
if (this.cfg.absolutePositioned) {
     winScrollTop var = $ (window) .scrollTop ();
      this.jq.css ('top', parseFloat (this.jq.css ('top')) + (winScrollTop - this.lastScrollTop) + 'px');
      this.lastScrollTop = winScrollTop;
}
where the css top property and automatically generated according to the screen size.

how do I set a css for dialog that is called by the Java code using the dialog framework?

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 45 guests