From 9cd47ee3331f46335945a12fcaf2088081b5ccb1 Mon Sep 17 00:00:00 2001 From: frcroth Date: Thu, 3 Jun 2021 12:04:16 +0200 Subject: [PATCH] Fix relayouting via connection --- timeline/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/timeline/index.js b/timeline/index.js index a094f3111..fa4b7e1ca 100644 --- a/timeline/index.js +++ b/timeline/index.js @@ -107,7 +107,7 @@ export class Timeline extends QinoqMorph { this.initializeLayerInfoContainer(); this.initializeLayerContainer(); - connect(this.ui.layerContainer, 'extent', this.ui.scrollableContainer, 'height', { converter: ' (extent) => extent.y > timeline.height - scrollbarHeight ? timeline.height - scrollbarHeight : extent.y', varMapping: { timeline: this, scrollbarHeight: TIMELINE_CONSTANTS.VERTICAL_SCROLLBAR_HEIGHT } }).update(this.ui.layerContainer.extent); + connect(this.ui.layerContainer, 'extent', this.ui.scrollableContainer, 'height', { converter: ' (extent) => extent.y > timeline.height - scrollbarHeight ? timeline.height - scrollbarHeight - rulerHeight: extent.y', varMapping: { timeline: this, scrollbarHeight: TIMELINE_CONSTANTS.VERTICAL_SCROLLBAR_HEIGHT, rulerHeight: TIMELINE_CONSTANTS.RULER_HEIGHT } }).update(this.ui.layerContainer.extent); this.initializeScrollBar(); }