From ce69d9a230803c44b96bffb997007181532649a2 Mon Sep 17 00:00:00 2001 From: Katinka Tauber Date: Mon, 9 Feb 2026 14:11:33 +0100 Subject: [PATCH] Fix base of calculating maximum height of editors. See #239 --- src/cljs/metafacture_playground/subs.cljs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cljs/metafacture_playground/subs.cljs b/src/cljs/metafacture_playground/subs.cljs index 2900e98..ce5453c 100644 --- a/src/cljs/metafacture_playground/subs.cljs +++ b/src/cljs/metafacture_playground/subs.cljs @@ -76,7 +76,8 @@ (let [height-divider (get-in db [:editors editor :height-divider]) max-editor-size (-> (get-in db [:ui :height]) (editor-height-maximum font-size height-divider)) - calculated-size (-> (get-in db [:editors editor :content]) + calculated-size (-> (or (get-in db [:editors editor :shadow-content]) + (get-in db [:editors editor :content])) (clj-str/split #"\r?\n" -1) count (+ 3))]