From 798494e701b456f43fd5c63cbd70eb4bcff141c6 Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Sun, 26 Feb 2023 11:31:08 +0100 Subject: Fix miscalculated keyboard height with number row The 'keysHeight' field needs to be updated. As this class is not intended to be mutable, copy the list of rows and call the constructor. Also remove an unecessary component of the keyboard height calculation. --- srcs/juloo.keyboard2/Keyboard2View.java | 1 - 1 file changed, 1 deletion(-) (limited to 'srcs/juloo.keyboard2/Keyboard2View.java') diff --git a/srcs/juloo.keyboard2/Keyboard2View.java b/srcs/juloo.keyboard2/Keyboard2View.java index 17b5eec..88f8e6b 100644 --- a/srcs/juloo.keyboard2/Keyboard2View.java +++ b/srcs/juloo.keyboard2/Keyboard2View.java @@ -229,7 +229,6 @@ public class Keyboard2View extends View int width = dm.widthPixels; int height = (int)(_config.keyHeight * _keyboard.keysHeight - + _keyboard.rows.size() + _config.marginTop + _config.margin_bottom); setMeasuredDimension(width, height); _keyWidth = (width - (_config.horizontal_margin * 2)) / _keyboard.keysWidth; -- cgit v1.2.3