Ver Mensaje Individual
  #1 (permalink)  
Antiguo 17/02/2011, 03:45
nohack
 
Fecha de Ingreso: enero-2011
Mensajes: 21
Antigüedad: 13 años, 3 meses
Puntos: 0
Centrar jQuery Dialog

Buenas, tengo un problema que no consigo resolver y es que por más que lo intento cuando me salta el dialog sale en la esquina superior izquierda de la pantalla y no hay manera de que salga en el centro.

este es mi código

Código PHP:
$(function() {
    $( 
"#dialog" ).dialog({
        
autoOpenfalse,
        
show"blind",
        
bgiframetrue,
        
modaltrue,
        
height: $(document).height()-500,
        
width:$(document).width()-800,
        
minHeight:$(document).height()-500,
        
minWidth:$(document).width()-800,
        
maxHeight:$(document).height()-400,
        
maxWidth:$(document).width()-500,
        
position:'center'
    
});
    $( 
"#opener" ).click(function() {
        $( 
"#dialog" ).dialog"open" );
        return 
false;
    });
}); 
Gracias por la ayuda!!