Skip to content

Commit

Permalink
Set autoHeight off when explicitly setting track height before repain…
Browse files Browse the repository at this point in the history
…ting views. Fixes #1897
  • Loading branch information
jrobinso committed Oct 2, 2024
1 parent cb14b58 commit 76a2e2f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions js/ui/menuUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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)
Expand Down

0 comments on commit 76a2e2f

Please sign in to comment.