From 711db02f17d354d9ba24630f42682b3297245a29 Mon Sep 17 00:00:00 2001 From: Chris Dumas Date: Thu, 22 Oct 2026 07:33:36 +0000 Subject: [PATCH] Fix image compare control overlap --- js/compare/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/compare/index.js b/js/compare/index.js index 8ad70d7..31dbad9 100644 --- a/js/compare/index.js +++ b/js/compare/index.js @@ -20,7 +20,11 @@ const BUTTON_TOP = 10; const INFO_TOP = 30; const BTN_X = 80; const MIN_W = BTN_X + 6 * 56 + BUTTON_GAP * 5 + 6; -const MIN_H = IMAGE_TOP + 100; +// The compare canvas is square and starts below the controls. The previous +// 154px minimum was smaller than the intended initial 494px node, so Vue +// Nodes could shrink the DOM widget until its output sockets overlapped the +// mode buttons and canvas. +const MIN_H = INIT_H; const TOP_TRIM = 8; const SIZE_FONT = "12px 'Segoe UI',sans-serif"; const BADGE_FONT = "10px 'Segoe UI',sans-serif";