Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Function getOptimalPosition should prefer positions inside viewport a… #329

Merged
merged 11 commits into from
Apr 1, 2020

Conversation

niegowski
Copy link
Contributor

…nd not lock on first not optimal position

(because of intersection flipping between viewport and limiter for different position).

Suggested merge commit message (convention)

Fix: Balloon panels should prefer positions inside viewport . Closes ckeditor/ckeditor5#6181.


Additional information

…nd not lock on first not optimal position

(because of intersection flipping between viewport and limiter for different position).
@coveralls
Copy link

coveralls commented Mar 31, 2020

Coverage Status

Coverage remained the same at 100.0% when pulling 9db9ccb on i/6181 into 6dc1ba6 on master.

@niegowski
Copy link
Contributor Author

cc @ckeditor/qa-team Could you test this PR? This function is used for positioning:

  • Button of BlockToolbar,
  • Panel of DropdownView,
  • BalloonPanelView.

@FilipTokarski
Copy link
Member

Tested in all browsers, looks good 👍

@oleq oleq self-requested a review April 1, 2020 10:39
@oleq oleq self-assigned this Apr 1, 2020
tests/dom/position.js Outdated Show resolved Hide resolved
tests/dom/position.js Outdated Show resolved Hide resolved
tests/dom/position.js Outdated Show resolved Hide resolved
tests/dom/position.js Outdated Show resolved Hide resolved
tests/dom/position.js Outdated Show resolved Hide resolved
tests/dom/position.js Outdated Show resolved Hide resolved
tests/dom/position.js Outdated Show resolved Hide resolved
tests/dom/position.js Outdated Show resolved Hide resolved
@oleq oleq merged commit 7cd1238 into master Apr 1, 2020
@oleq oleq deleted the i/6181 branch April 1, 2020 14:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Table props dialog displayed offscreen (while table cell dialog works fine)
4 participants