From abb91ad965a2332c1cfa25b4cbe91b859cd746d6 Mon Sep 17 00:00:00 2001 From: Philipp Rudiger Date: Tue, 31 Aug 2021 19:12:58 +0200 Subject: [PATCH] Ensure Trend indicator can be rendered in layout (#2694) --- panel/models/trend.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/panel/models/trend.ts b/panel/models/trend.ts index dc026f1582..e3c0235212 100644 --- a/panel/models/trend.ts +++ b/panel/models/trend.ts @@ -206,7 +206,8 @@ export class TrendIndicatorView extends HTMLBoxView { this.textDiv.style.flex = "1" this.plotDiv.style.flex = "1" } - this.invalidate_layout() + if (this._has_finished) + this.invalidate_layout() } }