Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

116
Views
Ancho y alto del cuadro de diálogo de jQuery UI según el ancho y alto de la pantalla

Actualmente (jQuery 1.4.4 y UI 1.8.8) utilicé lo siguiente para configurar las propiedades de un cuadro de diálogo: (Estoy tratando de configurar el cuadro de diálogo para que sea 180 px menos que la altura y el ancho de la pantalla).

 $("#dialog").dialog({ bgiframe: true, position: 'center', width: $(window).width()-180, height: $(window).height()-180, title: ititle, modal: true, buttons: { "Close": function() { $(this).dialog("destroy"); }} });

Lo anterior funciona bien en FF pero en IE 8 falla.

¿Es esta la forma correcta de establecer el ancho y la altura o debería hacer algo diferente?

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Esto funcionó para mí en IE8:

 var winW = $(window).width() - 180; var winH = $(window).height() - 180; $( "#dialog" ).dialog({ autoOpen: false, height: winH, width: winW, modal: true });

Sin embargo, necesitarás esto en la parte superior de tu página.

 <!DOCTYPE html>
over 4 years ago · Santiago Trujillo Report

0

Probablemente necesite especificar el DOCTYPE y usar el modo estándar para que funcione correctamente.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!