diff --git a/browser_tests/tests/interaction.spec.ts-snapshots/zoomed-out-ctrl-shift-chromium-linux.png b/browser_tests/tests/interaction.spec.ts-snapshots/zoomed-out-ctrl-shift-chromium-linux.png index 2cada041d..1a2a25279 100644 Binary files a/browser_tests/tests/interaction.spec.ts-snapshots/zoomed-out-ctrl-shift-chromium-linux.png and b/browser_tests/tests/interaction.spec.ts-snapshots/zoomed-out-ctrl-shift-chromium-linux.png differ diff --git a/browser_tests/tests/interaction.spec.ts-snapshots/zoomed-out-high-zoom-speed-chromium-linux.png b/browser_tests/tests/interaction.spec.ts-snapshots/zoomed-out-high-zoom-speed-chromium-linux.png index 45b0e0369..8f0ed5716 100644 Binary files a/browser_tests/tests/interaction.spec.ts-snapshots/zoomed-out-high-zoom-speed-chromium-linux.png and b/browser_tests/tests/interaction.spec.ts-snapshots/zoomed-out-high-zoom-speed-chromium-linux.png differ diff --git a/browser_tests/tests/interaction.spec.ts-snapshots/zoomed-very-far-out-chromium-linux.png b/browser_tests/tests/interaction.spec.ts-snapshots/zoomed-very-far-out-chromium-linux.png index 49a154852..f91becc0e 100644 Binary files a/browser_tests/tests/interaction.spec.ts-snapshots/zoomed-very-far-out-chromium-linux.png and b/browser_tests/tests/interaction.spec.ts-snapshots/zoomed-very-far-out-chromium-linux.png differ diff --git a/src/scripts/domWidget.ts b/src/scripts/domWidget.ts index 78a7ce6bd..c329f35e3 100644 --- a/src/scripts/domWidget.ts +++ b/src/scripts/domWidget.ts @@ -148,12 +148,13 @@ abstract class BaseDOMWidgetImpl if (this.options.hideOnZoom && lowQuality) { // Draw a placeholder rectangle const originalFillStyle = ctx.fillStyle + ctx.beginPath() ctx.fillStyle = LiteGraph.WIDGET_BGCOLOR ctx.rect( this.margin, - y, + y + this.margin, widget_width - this.margin * 2, - (this.computedHeight ?? widget_height) - this.margin + (this.computedHeight ?? widget_height) - 2 * this.margin ) ctx.fill() ctx.fillStyle = originalFillStyle