We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fbd7e0 commit 1f9d01fCopy full SHA for 1f9d01f
packages/core/src/extensions/FormattingToolbar/FormattingToolbarPlugin.ts
@@ -211,11 +211,7 @@ export class FormattingToolbarView implements PluginView {
211
// content causes the formatting toolbar to be in the wrong place. We
212
// know the component has not yet rendered if the reference position has
213
// zero dimensions.
214
- if (
215
- newReferencePos.x === 0 ||
216
- newReferencePos.y === 0 ||
217
- newReferencePos.height === 0
218
- ) {
+ if (newReferencePos.height === 0 && newReferencePos.width === 0) {
219
// Updates the reference position again following the render.
220
queueMicrotask(() => {
221
const nextState = {
0 commit comments