relipse
relipse

Reputation: 1810

Jqueryui dialog not opening with correct height

i have a website and for some reason the jqueryui dialog is opening at a height 100px smaller than it should be, if i run the same code in the chrome console, it works fine $("#dlgAddWorkLog").dialog({ autoOpen: false, width: 258, height: 250});

I just updated the latest jqueryui (on the test server) to see if that would fix it, but no avail.

To see the problem in action, go to https://cworklog.com log in as test116 test116 and click "Add Work Log"

The resulting dialog that comes up is about 100px smaller than it should be.

Go ahead and open the console and type $("#dlgAddWorkLog").dialog({ autoOpen: false, width: 258, height: 250});

and watch it work flawlessly

I don't know if there is a library collision or what, i'm also using YUI 2.9 on the page as well.

Any ideas?

Upvotes: 0

Views: 700

Answers (1)

sdespont
sdespont

Reputation: 14025

work_log.php line 350, I am sure that you won't set the height value to 180 px :

<select name="company_id" onchange="
   if (this.value == 'new')
   { 
       $('#new_company').toggle(true); 
       $('#dlgAddWorkLog').dialog('option', 'height', 425); }
   else
   { 
       $('#new_company').toggle(false); 
       $('#dlgAddWorkLog').dialog('option', 'height', 180); 
   }
">

Avoid JS inline BTW, it is a mess to debug...

Upvotes: 1

Related Questions