Skip to content

Commit

Permalink
fix: close #470 点击float 插入 menu位置错位
Browse files Browse the repository at this point in the history
  • Loading branch information
sunsonliu committed Jun 28, 2023
1 parent 047d48e commit 1b0844d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/toolbars/MenuBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ export default class MenuBase {
getMenuPosition() {
const parent = MenuBase.getTargetParentByButton(this.dom);
const isFromSidebar = /cherry-sidebar/.test(parent.className);
if (/cherry-bubble/.test(parent.className)) {
if (/cherry-bubble/.test(parent.className) || /cherry-floatmenu/.test(parent.className)) {
this.positionModel = 'fixed';
} else if (isFromSidebar) {
this.positionModel = 'sidebar';
Expand Down

0 comments on commit 1b0844d

Please sign in to comment.