-
1. Re: rich:modalPanel position on the screen
cdollar393 Oct 21, 2010 10:41 AM (in response to spiritfox26)<rich:modalPanel id="something" autosized="true">
you can also add width, height, etc. if you're not happy with the size it chooses, but autosized="true" seems to center it in the screen for me.
-
2. Re: rich:modalPanel position on the screen
spiritfox26 Oct 21, 2010 10:47 AM (in response to cdollar393)Mmm i'm not sure this is a solution, but i will try adding this property.
-
3. Re: rich:modalPanel position on the screen
hollow Oct 21, 2010 11:20 AM (in response to spiritfox26)you can use jquery to find the modalpopup css/id and then center (fixes de google chrome bug)
little example:
function centerPopup(x){
//request data for centering
var windowWidth = document.documentElement.clientWidth;
var windowHeight = document.documentElement.clientHeight;
var popupHeight = $("#popup" + x).height();
var popupWidth = $("#popup" + x).width();
//centering
$("#popup" + x).css({
"position": "absolute",
"top": windowHeight/2-popupHeight/2,
"left": windowWidth/2-popupWidth/4
});
//only need force for IE6
$('#backgroundPopup').css({
"height": windowHeight
});
} -
4. Re: rich:modalPanel position on the screen
spiritfox26 Oct 21, 2010 1:28 PM (in response to hollow)I'm think to use left and top property but if a put left="center" (idem top) not work.
-
5. Re: rich:modalPanel position on the screen
ilya_shaikovsky Oct 22, 2010 5:52 AM (in response to spiritfox26)so center to not works in Chrome. (issues already exist in jira). So just try the solution above which makes calculations of position needed.
-
6. Re: rich:modalPanel position on the screen
spiritfox26 Oct 22, 2010 7:28 AM (in response to ilya_shaikovsky)Ok, thanks for all!
-
7. Re: rich:modalPanel position on the screen
kakamo Feb 17, 2011 4:09 AM (in response to spiritfox26)What is the version of Richfaces ?!!
Change to 3.3.3 Final version or richfaces and it will work fine.
-
8. Re: rich:modalPanel position on the screen
spiritfox26 Feb 17, 2011 11:02 AM (in response to kakamo)Yes but i'm wating Richfaces 4.0 final version