Skip to main content

Bug Tracker

Side navigation

#5045 closed bug (invalid)

Opened August 13, 2009 12:45PM UTC

Closed August 18, 2009 12:28AM UTC

bug

Reported by: Arz_Zeitgeist Owned by:
Priority: major Milestone: 1.3.2
Component: unfiled Version: 1.3.2
Keywords: Cc:
Blocked by: Blocking:
Description

Hi

I found a very big bug in jquery ui 1.7.2

please run this code and see what happend:

////////////////////////////////////////////////////////

<!doctype html>

<html lang="en">

<head>

<title>jQuery UI Draggable - Default functionality</title>

<link type="text/css" href="http://jqueryui.com/themes/base/ui.all.css" rel="stylesheet" />

<script type="text/javascript" src="http://jqueryui.com/jquery-1.3.2.js"></script>

<script type="text/javascript" src="http://jqueryui.com/ui/ui.core.js"></script>

<script type="text/javascript" src="http://jqueryui.com/ui/ui.draggable.js"></script>

<link type="text/css" href="../demos.css" rel="stylesheet" />

<style type="text/css">

#draggable { width: 150px; height: 150px; padding: 0.5em; }

</style>

<script type="text/javascript">

$(function() {

$("#draggable").draggable();

});

</script>

</head>

<body>

<div class="demo" style="border: 1px solid #090; width: 800px; height: 800px; outline: 1px solid #C30;">

<div id="draggable" class="ui-widget-content">

<p>Drag me around</p>

</div>

</div><!-- End demo -->

<div class="demo-description">

<p>

Enable draggable functionality on any DOM element. Move the draggable object by clicking on it with the mouse and dragging it anywhere within the viewport.

</p>

</div><!-- End demo-description -->

</body>

</html>

////////////////////////////////////////////////////

when you run code you see than after dragging the box to out of parent box , outline of parent box will drag too.

Attachments (0)
Change History (2)

Changed August 13, 2009 12:46PM UTC by Arz_Zeitgeist comment:1

Hi

I found a very big bug in jquery ui 1.7.2

please run this code and see what happend:

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

<!doctype html>

<html lang="en">

<head>

<title>jQuery UI Draggable - Default functionality</title>

<link type="text/css" href="http://jqueryui.com/themes/base/ui.all.css" rel="stylesheet" />

<script type="text/javascript" src="http://jqueryui.com/jquery-1.3.2.js"></script>

<script type="text/javascript" src="http://jqueryui.com/ui/ui.core.js"></script>

<script type="text/javascript" src="http://jqueryui.com/ui/ui.draggable.js"></script>

<link type="text/css" href="../demos.css" rel="stylesheet" />

<style type="text/css">

#draggable { width: 150px; height: 150px; padding: 0.5em; }

</style>

<script type="text/javascript">

$(function() {

$("#draggable").draggable();

});

</script>

</head>

<body>

<div class="demo" style="border: 1px solid #090; width: 800px; height: 800px; outline: 1px solid #C30;">

<div id="draggable" class="ui-widget-content">

<p>Drag me around</p>

</div>

</div><!-- End demo -->

<div class="demo-description">

<p>

Enable draggable functionality on any DOM element. Move the draggable object by clicking on it with the mouse and dragging it anywhere within the viewport.

</p>

</div><!-- End demo-description -->

</body>

</html>

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

when you run code you see than after dragging the box to out of parent box , outline of parent box will drag too.

Changed August 18, 2009 12:28AM UTC by dmethvin comment:2

resolution: → invalid
status: newclosed

Please file jQuery UI bugs in the UI bug tracker.