Bug Tracker

Ticket #2584 (closed bug: wontfix)

Opened 8 months ago

Last modified 7 months ago

[Resizable & Draggable] Element jumps up & left after resize in Mozilla

Reported by: telega Assigned to: braeker
Type: bug Priority: major
Milestone: 1.2.4 Component: ui
Version: 1.2.3 Keywords:
Cc: Needs: Review

Description

The code below produces a draggable and resizable div, as expected. However, once this div is resized for the 1st time, subsequent resizes and drags cause the div to jump a bit to up & left. This happens only in Firefox (3.0b5pre). Opera and IE work fine.

<script src="jquery/jquery-1.2.3.js"></script>
<script src="jquery/jquery.dimensions.js"></script>
<script src="jquery/ui.mouse.js"></script>
<script src="jquery/ui.draggable.js"></script>
<script src="jquery/ui.resizable.js"></script>
<script>
  $(document).ready(function() {
    $("<div id='aaa'></div>").resizable()
                             .draggable()
                             .appendTo(document.body);
  });
</script>
<style>
  #aaa {
    width: 100px;
    height: 100px;
    background-color: lightblue;
    border: 1px solid black;
  }
</style>

Attachments

Change History

Changed 8 months ago by paul

  • owner changed from paul to braeker

Changed 8 months ago by telega

More info: jump offset equals to the body margin. When body margin = 0, no jump occurs.

Changed 7 months ago by paul

  • status changed from new to closed
  • resolution set to wontfix

having a margin on the body is not supported by jQuery's offset method, it's too difficult to track. If you need a margin, please use a div wrapper.

Note: See TracTickets for help on using tickets.