Skip to main content

Search and Top Navigation

#7675 closed bug (notabug)

Opened August 29, 2011 06:50AM UTC

Closed August 30, 2011 10:04PM UTC

Last modified August 31, 2011 04:04AM UTC

Dialog moves on unexpected place.

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

Hello experts,

I think that would be best showing a example, you first must move the dialog, after close the dialog and open it. Then... dialog moves a little more to up of where it was. Why? The example is:

        <link id="stylesheet" rel="stylesheet" href="">
        <script src="js/jquery-1.6.2.min.js" language="JavaScript" type="text/javascript"></script>
        <script src="js/jquery-ui-1.8.15.custom.min.js" language="JavaScript" type="text/javascript"></script>
        <script language="JavaScript" type="text/javascript">
// Is just a code for when click in body, dialog open/close.
            $( document.ready ).ready( function() {
                $( "#example" ).dialog();
                $( document ).click( function() {
                     if ( $( "#example" ).dialog( "isOpen") )
                         $( "#example" ).dialog( "close" );
                         $( "#example" ).dialog( "open" );
                } );
    First move the dialog, after click in document to open/close and you'll see when it opens, it appears a little more to up, ¿Why?!!!
            <div id="example" title="Example example.">

Well, I know that this happens when the dialog helper( in my case is #example ), is in another element( in this case a simple div). Help please, excuse me my ignorance I am a simple mortal, grettings, thanks and luck powerful team!.

Attachments (0)
Change History (2)

Changed August 30, 2011 10:04PM UTC by scottgonzalez comment:1

resolution: → invalid
status: newclosed

You're mixing the 1.7.2 theme with the 1.8.16 code, which is invalid. Also, you don't have a doctype. If you continue having problems after fixing these errors, please provide a test case using jsbin or jsFiddle, do not paste code into the ticket (see the red box).

Changed August 31, 2011 04:04AM UTC by angelfcm comment:2

Hello!, thank you,

The problem was mine because I was mixing, I dont knew about this, sorry hehe, grettings and thanks!