Opened 14 years ago
Closed 14 years ago
#3667 closed bug (fixed)
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: | |
Blocked by: | Blocking: |
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 (1)
comment:1 Changed 14 years ago by
Milestone: | TBD → 1.6 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
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.