Skip to main content

Search and Top Navigation

#6907 closed bug (duplicate)

Opened January 28, 2011 02:40AM UTC

Closed January 28, 2011 03:03AM UTC

Last modified January 28, 2011 03:03AM UTC

Dialogs are not horizontally centered on Chrome 8 (Windows)

Reported by: jayhoytt Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.core Version: 1.8.8
Keywords: Cc:
Blocked by: Blocking:
Description

Dialog is vertically centered, but sits flush to left side of window on Chrome 8.0.552.237 (Windows XP)

<!DOCTYPE>
<html>
<head>
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/smoothness/jquery-ui.css" type="text/css" /> 
 
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script> 
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/jquery-ui.min.js"></script> 
<script type="text/javascript">
$(function() {
    $('#d').dialog();
});
</script>
</head>
<body>
<div id="d" style="border: 1px solid #000;">
Hello!
</div>
</body>
</html>
Attachments (0)
Change History (3)

Changed January 28, 2011 02:57AM UTC by jayhoytt comment:1

Sorry, PEBKAC. Issue resolved when CSS version is matched with jQuery UI version. E.g.:

<!DOCTYPE>
<html>
<head>
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/themes/smoothness/jquery-ui.css" type="text/css" /> 
 
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script> 
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/jquery-ui.min.js"></script> 
<script type="text/javascript">
$(function() {
    $('#d').dialog();
});
</script>
</head>
<body>
<div id="d" style="border: 1px solid #000;">
Hello!
</div>
</body>
</html>

Changed January 28, 2011 03:03AM UTC by scottgonzalez comment:2

resolution: → duplicate
status: newclosed

Changed January 28, 2011 03:03AM UTC by scottgonzalez comment:3

Duplicate of #6901.