abouttreesummaryrefslogcommitdiff
path: root/srcs/juloo.keyboard2/Keyboard2View.java
diff options
context:
space:
mode:
authordzaima2025-11-10 19:32:41 +0200
committerGitHub2025-11-10 18:32:41 +0100
commitbe8a99bdc6121592cdc7209816e103c824de2f11 (patch)
tree43ad115d8acebd0d5977ca5477e4fda5143d062b /srcs/juloo.keyboard2/Keyboard2View.java
parent00cf534e00dbac7e325f5e91845a007a15513906 (diff)
downloadunexpected-keyboard-be8a99bdc6121592cdc7209816e103c824de2f11.tar.gz
unexpected-keyboard-be8a99bdc6121592cdc7209816e103c824de2f11.zip
Fix insets being excluded from computed width (#1127)
Diffstat (limited to 'srcs/juloo.keyboard2/Keyboard2View.java')
-rw-r--r--srcs/juloo.keyboard2/Keyboard2View.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/srcs/juloo.keyboard2/Keyboard2View.java b/srcs/juloo.keyboard2/Keyboard2View.java
index b3817d4..01afe91 100644
--- a/srcs/juloo.keyboard2/Keyboard2View.java
+++ b/srcs/juloo.keyboard2/Keyboard2View.java
@@ -272,6 +272,7 @@ public class Keyboard2View extends View
_marginLeft = Math.max(_config.horizontal_margin, _insets_left);
_marginRight = Math.max(_config.horizontal_margin, _insets_right);
_marginBottom = _config.margin_bottom + _insets_bottom;
+ width += _insets_left + _insets_right;
_keyWidth = (width - _marginLeft - _marginRight) / _keyboard.keysWidth;
_tc = new Theme.Computed(_theme, _config, _keyWidth, _keyboard);
// Compute the size of labels based on the width or the height of keys. The