File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
packages/core/src/extensions/FormattingToolbar Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -206,15 +206,14 @@ export class FormattingToolbarView implements PluginView {
206
206
// individually in each button.
207
207
const newReferencePos = this . getSelectionBoundingBox ( ) ;
208
208
209
- // Workaround to ensure the correct reference position when rendering
209
+ // Workaround to ensure the correct reference position when rendering
210
210
// React components. Without this, e.g. updating styles on React inline
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
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
213
// zero dimensions.
214
214
if (
215
215
newReferencePos . x === 0 ||
216
216
newReferencePos . y === 0 ||
217
- newReferencePos . width === 0 ||
218
217
newReferencePos . height === 0
219
218
) {
220
219
// Updates the reference position again following the render.
You can’t perform that action at this time.
0 commit comments