Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#3074 closed bug (fixed)

Resizable jumps when in scrolled container.

Reported by: wundbread@… Owned by: eduardo
Priority: minor Milestone: 1.5.2
Component: ui.resizable Version: 1.5.1
Keywords: Cc:
Blocked by: Blocking:

Description

When a resizable is in a containment div which has been scrolled down or right, the resizable jumps to the top of the containment.

I was able to get around this simply by adding the scrollTop() and scrollLeft() of the containment to the css of the resizable in a custom resize function like this: function(e,ui){

var c = ui.options.containment; $(this).css({top: ui.position.top + c.scrollTop() + "px", left: ui.position.left + c.scrollLeft() + "px",

width: ui.size.width + "px", height: ui.size.height + "px"}); }

Attachments (1)

resizable_3074.patch (680 bytes) - added by oggy 7 years ago.

Download all attachments as: .zip

Change History (3)

comment:1 Changed 8 years ago by eduardo

  • Resolution set to fixed
  • Status changed from new to closed

comment:2 Changed 8 years ago by paul

  • Milestone set to 1.5.2

Changed 7 years ago by oggy

Note: See TracTickets for help on using tickets.