Ticket #3667 (closed bug: fixed)

Opened 5 years ago

Last modified 5 years ago

Dialog is created with wrong height/width when a string is passed

Reported by: dmuir Owned by:
Priority: minor Milestone: 1.7
Component: ui.dialog Version: 1.6rc2
Keywords: dialog, height, width Cc:
Blocking: Blocked by:

Description

$('#dialog').dialog({
    width : "450",
    height : "300"
});

Results in a dialog with the size 156x240.

$('#dialog').dialog({
    width : 450,
    height : 300
});

will result in a dialog with the size 450x300

Adding parseInt() fixes the problem. Either add the type casting internally in dialog(), or document that the values must be integers for it to work, and to type-cast when necessary.

Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.4) Gecko/2008111317 Ubuntu/8.04 (hardy) Firefox/3.0.4

Change History

comment:1 Changed 5 years ago by scott.gonzalez

  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone changed from TBD to 1.6

This works fine for me using latest SVN. The fix probably occurred when the size method was rewritten for the new framework. Feel free to re-open this ticket if you continue to have problems after 1.6rc3.

Note: See TracTickets for help on using tickets.