-
Notifications
You must be signed in to change notification settings - Fork 377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash when resizing grid item #233
Comments
Hi @dzhavat , |
The demonstration is from the live demo so I assume you're using the latest of both Angular and the library. You can try it as well. Just copy any Otherwise in my project I use |
So I did managed to reproduce the issue with an iFrame. Unfortunately there is nothing I can do. But there is something you can do. This should solve your issue. |
Or got another idea to have a transparent div always over the iframe and by default to have pointer-events none and when drag/resize occurs set pointer events to initial. You should have this on all widgets with iframe even if you drag/resize only one widget. gridster-item .my-div {
pointer-events: none;
}
.my-drag-in-progress gridster-item .my-div {
pointer-events: initial;
} |
Yeah, that's right.
Adding a transparent Thanks for the ideas. Will get back with more info once I have some results :) |
I will assume this issue is fixed. |
I have this issue of a drag starting to follow mouse-cursor also. But in my case it has nothing to do with iframe, because I have none on my gridster-app. Instead, what I have found that causes this issue for me, is that when ever during or at the end of dragging any text-content gets selected (and it easily often does), and when you start then the next drag-operation with the same drag-item (on which content-text is still selected), the issue start appearing (i.e drag-item follows cursor and the console logs the same error "...Cannot read property 'setPushedItems' of undefined..."). However, before a new drag, if I with the extra mouse-click upon the drag-item unselect the selected text-content, issue never seems to appear. As a further observation, if text-content is selected on a drag-item, the drag-operation does not start dragging the actual drag-item but the selected text-content instead. Any idea how to solve this issue? |
the problem with this if you have content that can be clicked inside the iframe ? if you do pointer-events: none; then you won't be able to fire click event inside the iframe. is there a work around ? |
I fixed the 'setPushedItems' error this way using @tiberiuzuld comment above:
|
this solution is not valid, for some reasons it looks like it is still in resize/draggable mode sometimes even though you release the mouse key up , you need to click with your mouse left button once again to remove the resize/draggable state |
Thanks @ecenedis this fixed my issue. |
Hi I have tried using the above suggested solution but its not working. Please find below the stackblitx link for the same |
Extra note on @ecenedis solution: The complete solution will be to add @rahultokase The issue you are facing is the same as I described above. With the @ecenedis solution, the iframe container you are resizing have I wasn't able to find any CSS solution for this, so went with the following
|
Thank You bro It's work for me :) |
Hi Tiberiu,
First of all thank you for taking the time to work on this library. It works really well. I use it in one web app I'm working on.
Recently I encountered a small bug when resizing a widget. Here's my use case:
I have a widget with an
iframe
inside. When I start resizing the widget everything works fine but if I release the mouse over theiframe
the code breaks and from then on the widget sticks to the mouse movement and keeps following. The error is shown after clicking again the edges of the widget.I made a small gif to illustrate the problem:
This error might be related to #214 somehow.
Thanks for your help!
The text was updated successfully, but these errors were encountered: