Skip to main content

Search and Top Navigation

#7612 closed bug (fixed)

Opened August 05, 2011 03:22PM UTC

Closed October 18, 2012 01:35AM UTC

Last modified January 17, 2013 08:29PM UTC

Calling stop(true, true) on an effect will change absolute positioning from the affected element

Reported by: MetalArend Owned by:
Priority: minor Milestone: 1.8.23
Component: ui.effects.core Version: 1.8.23
Keywords: Cc:
Blocked by: Blocking:
Description

When stopping an effect with stop(true, true), one would would expect the effect going to the end of the values, and keeping everything from the beginning, only changing some values to their end value. But the positioning from the box changes also. It goes even further than this example; if I declare a absolute positioning, with a bottom-value, the stop(true, true) part will actually change my bottom positioning to a top positioning!

jQuery: 1.6.2

jQuery UI: 1.8.14

Browser: FFX 5.0

<!doctype html>

<html>

<head>

<title>bug</title>

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/jquery-ui.min.js"></script>

<style>

a { color: inherit; }

.bug_box { margin: 5px; float: left; border: 5px double #eeeeff; }

.bug_playground { height: 300px; width: 300px; background: #aaaacc; }

.bug_problem { height: 150px; width: 150px; background: #ff0000; }

</style>

</head>

<body>

<div class="bug_box">

<div style="position: relative;" class="bug_playground">

<div id="bug02" style="position: absolute; top: 150px; left: 150px; height: 150px; width: 150px;" class="bug_problem">BUG 02</div>

</div>

<a href="#" onclick="$('#bug02').stop(true, true).toggle('blind', 'slow');">Show / Hide</a>

</div>

</body>

</html>

Attachments (0)
Change History (5)

Changed August 05, 2011 03:26PM UTC by MetalArend comment:1

Changed August 05, 2011 07:22PM UTC by gnarf comment:2

This could be a dupe of http://bugs.jqueryui.com/ticket/7123 - Will investigate further soon

Changed October 11, 2012 02:42PM UTC by scottgonzalez comment:3

milestone: 1.9.01.10.0

Changed October 18, 2012 01:35AM UTC by mikesherov comment:4

resolution: → fixed
status: newclosed
version: 1.8.141.8.23

This was fixed by the core animation rewrite.

Changed January 17, 2013 08:29PM UTC by scottgonzalez comment:5

milestone: 1.10.01.8.23