#5212 closed bug (worksforme)
Dialog wont reposition position
Reported by: | dcramer | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.8 |
Component: | ui.dialog | Version: | 1.8rc2 |
Keywords: | dialog, position | Cc: | |
Blocked by: | Blocking: |
Description
I'm having a problem with 1.8rc2 dialogs. The dialog opens and after it opens needs to set itself to the center. this works fine with 1.7 but in 1.8rc2 its opens at the bottom left of the screen. the following code worked fine to reposition itself to center but wont work in 1.8rc2.
$("#ui-dialog-notice").dialog({ bgiframe: true, resizable: false, height:140, modal: true, buttons: { 'Close': function() { $(this).dialog("close"); } }, close: function(event, ui) { $("#ui-dialog-notice").remove(); }, open: function(event, ui) { $("#ui-dialog-notice").dialog('option', 'position', 'center'); } });
Attachments (1)
Change History (3)
Changed 13 years ago by
Attachment: | dialogbottom.JPG added |
---|
comment:1 Changed 13 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
This is working fine for me. Please attach a test case or create one using jsbin.com if you continue to have problems.
comment:2 Changed 13 years ago by
Embarrassing moment here - I also had included jquery dimentions 1.2 which was messing with the positioning. eventually solved the proble while using jsbin.com to recreate the case.
Note: See
TracTickets for help on using
tickets.
Dialog placement after opening in 1.8rc2