Skip to content
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

Fix CharacterStylePopup top position #1681

Merged
merged 1 commit into from
Apr 13, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix CharacterStylePopup top position
  • Loading branch information
always-maap committed Apr 13, 2022
commit 255ececdd5a9a05b0e9fecd09f132bcdaa73e8b9
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function setPopupPosition(editor, rect) {
editor.style.left = '-1000px';
} else {
editor.style.opacity = '1';
editor.style.top = `${rect.top - rect.height * 2.5 + window.pageYOffset}px`;
editor.style.top = `${rect.top - 45 + window.pageYOffset}px`;
editor.style.left = `${
rect.left + window.pageXOffset - editor.offsetWidth / 2 + rect.width / 2
}px`;
Expand Down