diff options
| author | Jules Aguillon | 2026-05-03 18:10:43 +0200 |
|---|---|---|
| committer | GitHub | 2026-05-03 18:10:43 +0200 |
| commit | 2e1859fb1a54a1fd91111e761a9d414fcf570f5e (patch) | |
| tree | 3ae420d81707cddf684f563e60a34492e930286a /srcs | |
| parent | 139d1c56913046d519efdc9f8dd9520368b68385 (diff) | |
| download | unexpected-keyboard-2e1859fb1a54a1fd91111e761a9d414fcf570f5e.tar.gz unexpected-keyboard-2e1859fb1a54a1fd91111e761a9d414fcf570f5e.zip | |
Fix the keyboard drawing behind the navigation bar (#1265)
The width of the navigation was not accounted correctly.
This reverts be8a99bd
Diffstat (limited to 'srcs')
| -rw-r--r-- | srcs/juloo.keyboard2/Keyboard2View.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/srcs/juloo.keyboard2/Keyboard2View.java b/srcs/juloo.keyboard2/Keyboard2View.java index 5d6e0fa..098bec1 100644 --- a/srcs/juloo.keyboard2/Keyboard2View.java +++ b/srcs/juloo.keyboard2/Keyboard2View.java @@ -264,13 +264,11 @@ public class Keyboard2View extends View @Override public void onMeasure(int wSpec, int hSpec) { - int width; DisplayMetrics dm = getContext().getResources().getDisplayMetrics(); - width = dm.widthPixels; + int width = dm.widthPixels; _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 |
