Fix insets being excluded from computed width (#1127)

This commit is contained in:
dzaima
2025-11-10 18:32:41 +01:00
committed by GitHub
parent 00cf534e00
commit be8a99bdc6
+1
View File
@@ -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