jQuery: The Write Less, Do More JavaScript Library

Re: Is it possible to programmatically cancel a resize?

by Scott González :: Rate this Message:

| View in Thread


All jQuery UI events are supposed to be cancelable like native
events.  So you should be able to return false, or call
event.preventDefault(), in the resize event to prevent the resize from
occurring.  Unfortunately not all events currently conform to this
standard yet, so you may or may not be able to do this right now.  If
this doesn't work, feel free to file a ticket at http://dev.jqueryui.com
(requires registration).


On May 7, 7:37 pm, "Mike P." <pridem...@...> wrote:

> I'm working with a grid of divs that are both resizable and draggable.
> I want to limit the resizing so you can't make one div overlap
> another. Kind of like containment, except the other objects are
> siblings to the one being resized, not parents.
>
> The only thing I can think of would be to monitor the resize events
> during the resize and cancel it if the mouse moves into another div.
> But I can't figure out how one would programmatically cancel the
> resize.
>
> Any ideas?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "jQuery UI" group.
To post to this group, send email to jquery-ui@...
To unsubscribe from this group, send email to jquery-ui+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

 « Return to Thread: Is it possible to programmatically cancel a resize?