grapesjs icon indicating copy to clipboard operation
grapesjs copied to clipboard

When moving the Canvas Div to a bottom of a html page the drag icon location does not correspond to the canvas position.

Open altalker opened this issue 9 years ago • 17 comments

When moving the Canvas Div to a bottom of a html page the drag icon location does not correspond to the canvas position. (it displays off the canvas on the top of the page)

....other html elements... .... ...... ......
</div>

altalker avatar Aug 05 '17 10:08 altalker

I think I don't get exactly what do you mean, can you provide some example?

artf avatar Aug 08 '17 11:08 artf

image After moving the canvas location to the bottom of the screen, the Drag icon will be placed above the canvas and will not correspond to cursor position.

altalker avatar Aug 08 '17 16:08 altalker

Canvas location? your canvas seems to be in the correct position, maybe you mean moving the entire editor down?!? Anyway, try to trigger this after you moved it down editor.trigger('change:canvasOffset')

artf avatar Aug 08 '17 19:08 artf

Yes, moving the div section containing the editor down causes this issue. editor.trigger('change:canvasOffset') does not correct this issue.

altalker avatar Aug 08 '17 19:08 altalker

Try to change the Device select and see if it corrects the position

artf avatar Aug 08 '17 20:08 artf

It seems that the scroll position of the document makes the difference. If the document main page scroll bar is on top position the drag icon will be placed correctly. However, when scrolled down then the drag icon is off its drag position.

altalker avatar Aug 08 '17 23:08 altalker

ok, but did you try to update the device select?

artf avatar Aug 08 '17 23:08 artf

I tried and device select did not make a difference. Only the outer scroll bar position alters the drag icon location

altalker avatar Aug 08 '17 23:08 altalker

Ok I need to see your code because I can't reproduce it

artf avatar Aug 09 '17 11:08 artf

@altalker I've suggest to place a screencast here showing what is happening. There is a program called Kap that helps a lot on trying to explain the problems.

rgcarrasqueira avatar Aug 15 '17 20:08 rgcarrasqueira

any update @altalker?

artf avatar Aug 16 '17 13:08 artf

I was on vacation. I tried device select. If the div div id="gjs" is on top the cursor will show the correct position. However if scrolled down and the div is below other content the cursor if off.

image

image

altalker avatar Aug 18 '17 20:08 altalker

seems like an old issue for me... @altalker Are you sure you're using the last version?

artf avatar Aug 21 '17 20:08 artf

ping @altalker

artf avatar Aug 28 '17 22:08 artf

Latest version. I also removed some code blocks that were not compatible with IE 11 and caused errors

altalker avatar Aug 28 '17 23:08 altalker

post your code @altalker because if I can't reproduce it I can't help you

artf avatar Aug 29 '17 12:08 artf

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Sep 18 '19 12:09 lock[bot]