spiegel-keyman/web/src
Eberhard Beilharz 0020b98784
fix(web): fix error trying to calculate style scaling effects 🍒
PR #13860 fixed a similar error by adding a check for NaN. However, it
missed doing it for `layoutWidth` and only changed `layoutHeight`. This
PR adds a similar check to `layoutWidth` and will thus fix the error
we're still seeing in Sentry.

The same error could potentially happen in `internalHeight`, so we
add the check for NaN there as well. Addresses code review comments.

Also add unit tests for all three methods.

# User Testing

TEST_INUKTITUT_KEYBOARD: Using Keyman for Android, install the
`inuktitut_pirurvik` and verify that no error notifications appear.

Fixes: #14108
Fixes: [KEYMAN-WEB-RA](https://keyman.sentry.io/issues/6579536471/?referrer=github_integration)
Cherry-pick-of: #14684
2025-09-05 15:53:39 +02:00
..
app change(web): keyman-page-trailer -> kmw-page-trailer in order to match common prefix 2025-04-02 13:45:09 +07:00
engine fix(web): fix error trying to calculate style scaling effects 🍒 2025-09-05 15:53:39 +02:00
resources fix(web): add banner font downscaling 2025-04-02 13:15:24 +07:00
samples chore(common): builder scripts now use /resources/build/builder.inc.sh 2024-05-02 15:54:31 +07:00
test fix(web): fix error trying to calculate style scaling effects 🍒 2025-09-05 15:53:39 +02:00
tools refactor(web): merge device-detect with web/src/engine/main 2024-09-11 16:48:15 +02:00
.editorconfig change(web): source/ => src/ 2022-10-21 12:00:10 +07:00
tsconfig.all.json chore(web): centralizes main KMW component tsconfig settings 2023-06-14 09:02:46 +07:00
tsconfig.dom.json chore(web): the final push for config-flag parity for web/ 2024-05-29 10:57:41 +07:00