From 76a2e2f35dd11790cca23fee8f72e48838ee7ef4 Mon Sep 17 00:00:00 2001 From: jrobinso <933148+jrobinso@users.noreply.github.com> Date: Wed, 2 Oct 2024 09:07:46 -0700 Subject: [PATCH] Set autoHeight off when explicitly setting track height before repainting views. Fixes #1897 --- js/ui/menuUtils.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/js/ui/menuUtils.js b/js/ui/menuUtils.js index 00eda8e02..17dad9aa3 100644 --- a/js/ui/menuUtils.js +++ b/js/ui/menuUtils.js @@ -302,6 +302,8 @@ function trackHeightMenuItem() { } for (const track of tracks) { + // Explicitly setting track height turns off autoHeight + track.trackView.autoHeight = false // If explicitly setting the height adjust min or max, if necessary if (track.minHeight !== undefined && track.minHeight > number) { @@ -315,9 +317,6 @@ function trackHeightMenuItem() { track.trackView.checkContentHeight() track.trackView.repaintViews() - // Explicitly setting track height turns off autoHeight - track.trackView.autoHeight = false - } // for (tracks) } // if (undefined !== number)