Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#7675 closed bug (notabug)

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:

Description

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:

<html>
 
    <head>
 
        <link id="stylesheet" rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/ui-lightness/jquery-ui.css">
        <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" );
                     else
                         $( "#example" ).dialog( "open" );
                } );
            });
        </script>
 
    </head>
 
    <body>
    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>&npbs;
            <div id="example" title="Example example.">
                Example
            </div>
        </div>
 
    </body>
 
</html>

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!.

Change History (2)

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

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).

comment:2 Changed 8 years ago by angelfcm

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

Note: See TracTickets for help on using tickets.