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;
}
how do I set a css for dialog that is called by the Java code using the dialog framework?