Opened 7 years ago

Closed 7 years ago

#8619 closed bug (notabug)

position() does not operate correctly when browser is IE6 and parent is window.

Reported by: hatanaka Owned by: hatanaka
Priority: minor Milestone: 1.9.0
Component: ui.position Version: 1.8.24
Keywords: Cc:
Blocked by: Blocking:

Description

version: 1.8.23, 1.8.24 browser: IE6

In the below HTML, only one div element is not positioned at center, when browser is IE6. When browser is Chrome, the div element is positioned at center.

dialog() does not operate correctly when browser is IE6, because dialog() uses position() internally.

I confirm version 1.8.24 has the same bug.

<html>
<head>
<style>
div.positionable {
	width: 75px;
	height: 75px;
	position: absolute;
	display: block;
	right: 0;
	bottom: 0;
	background-color: #bcd5e6;
	text-align: center;
}
</style>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script
	src="//ajax.googleapis.com/ajax/libs/jqueryui/1.8.23/jquery-ui.min.js"></script>
<script>
	$(function() {
		$( ".positionable" ).position({
			of: window,
			my: 'center',
			at: 'center',
			collision: 'fit'
		});
	});
</script>
</head>
<body>

	<div class="positionable">
		<p>to position</p>
	</div>
</body>
</html>

Change History (4)

comment:1 Changed 7 years ago by hatanaka

jQuery 1.7.2 jQuery UI 1.8.24 -> OK

1.8.2 1.8.24 -> NG

comment:2 Changed 7 years ago by Scott González

Owner: set to hatanaka
Status: newpending

Without a doctype, you're going into quirks mode, which isn't supported. Are you having any problems in standards mode?

comment:3 in reply to:  2 Changed 7 years ago by hatanaka

Status: pendingnew

Replying to scott.gonzalez:

Without a doctype, you're going into quirks mode, which isn't supported. Are you having any problems in standards mode?

Thanks. I understood.

Our web application has doctype, however it has <?xml ?> too. So IE6 is in quirks mode.

Without <?xml ?>, position() operates correctly.

Thanks, again.

comment:4 Changed 7 years ago by Scott González

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.