From 8db00d51ab076dd7732c494851db5ddce9e10855 Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Mon, 15 Sep 2025 14:15:55 +0200 Subject: Allow smaller row height in custom layouts (#1100) The height of row set with `` cannot be lower than 0.5 to avoid rendering problems. This restriction is not necessary when the row has no key and is lifted in this case.--- srcs/juloo.keyboard2/KeyboardData.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srcs/juloo.keyboard2/KeyboardData.java b/srcs/juloo.keyboard2/KeyboardData.java index 494b95a..b15e836 100644 --- a/srcs/juloo.keyboard2/KeyboardData.java +++ b/srcs/juloo.keyboard2/KeyboardData.java @@ -325,7 +325,7 @@ public final class KeyboardData float kw = 0.f; for (Key k : keys_) kw += k.width + k.shift; keys = keys_; - height = Math.max(h, 0.5f); + height = Math.max(h, keys_.size() == 0 ? 0.0f : 0.5f); shift = Math.max(s, 0f); keysWidth = kw; } -- cgit v1.2.3