Opened 9 years ago

Closed 9 years ago

#6686 closed bug (worksforme)

Issue with setting height of dialog object

Reported by: irishado Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.dialog Version: 1.8.5
Keywords: Cc:
Blocked by: Blocking:

Description

I have a dialog box that I change the title off and content of as a user fills out a form eventually getting to the end of the process and the dialog box closing.

works perfectly in Firefox and when testing in IE8 I noticed that the height of the dialogs were not getting set. As each step required more or less space I was resizing the dialog using the following line of code

$('div#dialogueBox').dialog("option", "height",400);

now moving between firefox and ie I noticed that it wasn't working properly setting the height to be 0 in effect.

my solution was to use the following

$('div#dialogueBox').dialog("option", "height",($.browser.msie?"400px":400));

turns out that IE8 required the addition of the "px" definition and firefox didn't like it when I added the "px" to the height value.

would be neater if this was handled by the dialog functionality rather than by the user. I should be able to use either

$('div#dialogueBox').dialog("option", "height","400px"); or $('div#dialogueBox').dialog("option", "height",400);

to set the height of my dialog.

Thanks

Change History (1)

comment:1 Changed 9 years ago by Scott González

Resolution: worksforme
Status: newclosed

Works for me. Please re-open with a reduced test case showing the problem.

Note: See TracTickets for help on using tickets.