Skip to content

Commit 1f9d01f

Browse files
fix: Minor change to formatting toolbar extension logic (#1963)
1 parent 8fbd7e0 commit 1f9d01f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/core/src/extensions/FormattingToolbar/FormattingToolbarPlugin.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -211,11 +211,7 @@ export class FormattingToolbarView implements PluginView {
211211
// content causes the formatting toolbar to be in the wrong place. We
212212
// know the component has not yet rendered if the reference position has
213213
// zero dimensions.
214-
if (
215-
newReferencePos.x === 0 ||
216-
newReferencePos.y === 0 ||
217-
newReferencePos.height === 0
218-
) {
214+
if (newReferencePos.height === 0 && newReferencePos.width === 0) {
219215
// Updates the reference position again following the render.
220216
queueMicrotask(() => {
221217
const nextState = {

0 commit comments

Comments
 (0)