gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

Link Dialog's position appears randomly generated

Open ephox-mogran opened this issue 9 years ago • 2 comments

Issue Overview

When activating the inline link dialog, it appears in an unexpected position.

Steps to Reproduce (for bugs)

  1. Enter a paragraph block
  2. Click on the link icon in the docked toolbar

Expected Behavior

Either the link popup would show near the content being linked, or the link popup would show in the same position with respect to the docked toolbar. I'm not sure ... @jasmussen @karmatosed ?

Current Behavior

The popup appears mostly near the toolbar, with a horizontal position that seems related to the selection rectangle.

Possible Solution

There may have been some additional CSS that getFocusPosition now needs to consider when calculating a position.

Related Issues and/or PRs

Todos

  • [ ] Tests
  • [ ] Documentation

ephox-mogran avatar Oct 27 '17 19:10 ephox-mogran

Yeah this is definitely a regression. I suspect it may be related to the docked toolbar thing we merged. @youknowriad any idea what this might be?

jasmussen avatar Oct 30 '17 09:10 jasmussen

@jasmussen yes, the link relative position is not computed relatively to the right parent now. It should be fixed by #3224

youknowriad avatar Oct 30 '17 09:10 youknowriad