Skip to main content

Search and Top Navigation

#2970 closed bug (notabug)

Opened June 07, 2008 10:08AM UTC

Closed June 07, 2008 08:33PM UTC

dynamic size of droppable region causes much discomfort

Reported by: Owned by: paul
Priority: major Milestone: 1.5
Component: ui.droppable Version:
Keywords: dynamic size resize Cc:
Blocked by: Blocking:

On line 33 of ui.droppable.js, the width and height are assigned to this.element.outerWidth() and ...outerHeight(). This caused a bug in my application in which the dimensions of the droppable div change after droppable(...) is called.

You may want to change proportions.width from a variable to a function such as:

this.proportions.width = function(){return $(element).outerWidth()}

This will evaluate the width of the droppable appropriately.

Attachments (0)
Change History (1)

Changed June 07, 2008 08:33PM UTC by paul comment:1

resolution: → invalid
status: newclosed

This is not a bug, because your proposal would slow down the script a lot. However, you can either set the refreshPositions option in draggables to true, or call the refresh function manually, to correct your issue.