xieziyu/angular2-draggable

Problem resizing with containment

RaananW opened this issue · 3 comments

Hi,

Thanks for a great plugin :-)
I am having a problem, which i thought is due to my setup, but then i found out it is also present in the example page. Here is a quick screencast:
Angular2DraggableDemo - Edited

There are two problems presented here:

  1. The left / width values keep on bouncing when on the lower edge of the container
  2. The right side of the container doesn't stop from resizing.

It seems to be related to the checkBounds function and the correlation to origSize, but i still haven't found the concrete reason. Any idea how to fix this?

Thanks for reporting this issue. I will look into it.

Amazing, thanks a lot for a quick fix!

I found the same issue but using nw and sw handles. This is using the latest version (2.3.0) as of this writing.
As you can see below:

screen-capture-3