Ckeditor5: [Safari] Link balloon is shown outside the view in manual tests if selection is collapsed

Created on 30 Sep 2016  Â·  11Comments  Â·  Source: ckeditor/ckeditor5

Test: http://localhost:1030/build/modules/amd/tests/link/manual/link.

When I click on the first word in editor, the link balloon is shown as below:
Screen Shot 2016-09-30 at 14.03.10.png

link bug

Most helpful comment

Eh. Yesterday I could reproduce it. Today I cannot. Maybe it was Firefox instead of Chrome. I am not sure. I would like to apologize for the mess.

All 11 comments

It can be also reproduced in Chrome.

@pomek I'll update the title.

Looks like a problem with getting offset of collapsed selection.
I can't reproduce it on Chrome.

@oskarwrobel Yep, I can't reproduce it either. @pomek, can you provide steps to reproduce it, along with version of Chrome, type of screen (retina, non-retina), zoom factor, and all that stuff?

Eh. Yesterday I could reproduce it. Today I cannot. Maybe it was Firefox instead of Chrome. I am not sure. I would like to apologize for the mess.

There's a ticket on review which fixes some cases in positioning – maybe that it will fix this issue.

There's a ticket on review which fixes some cases in positioning – maybe that it will fix this issue.

I'm afraid it is a different issue.

Right... empty selection. I remember dealing with this in the past. It wasn't easy – I had to extend the range in some direction – otherwise the box was calculated incorrectly. And there were edge cases like empty blocks where the position had to be taken from the element.

Still as much reproducible as in the past. Could we fix it by positioning to the entire block if 0,0 cords were returned?

A full fix would be to inject an empty element inline in the place of the caret and positioning according to it. This may be required later on when we'll deal with scrolling to the caret on Enter, Delete, etc. but this is much more work.

Was this page helpful?
0 / 5 - 0 ratings