angular/packages/common
Matthias Kunnen 5a37928bab fix(common): fix incorrectly reported distortion for padded images (#49889)
The original code uses clientWidth and clientHeight which returns the
width and height of the element including the padding. This results in
the aspect ratio being determined incorrectly and the image distortion
warning triggering. The new code uses getComputedStyle which returns
the width and height without padding.

Another advantage of using getComputedStyle is that, unlike clientWidth
and clientHeight, the number returned is a decimal which provides
greater accuracy. This could allow for lowering the ASPECT_RATIO_TOLERANCE.

PR Close #49889
2023-04-27 17:16:46 +02:00
..
http fix(http): HTTP cache was being disabled prematurely (#49826) 2023-04-13 14:04:00 +00:00
locales build: make devmode a noop and ensure it never runs (#48521) 2022-12-19 19:50:45 +00:00
src fix(common): fix incorrectly reported distortion for padded images (#49889) 2023-04-27 17:16:46 +02:00
test refactor(common): add missing override to satisfy the linter (#49599) 2023-03-28 10:12:36 -07:00
testing refactor(common): add missing override to satisfy the linter (#49599) 2023-03-28 10:12:36 -07:00
upgrade refactor(common): Use isPromise from @angular/core (#49210) 2023-02-27 10:03:20 -08:00
BUILD.bazel refactor: remove Angular Compatibility Compiler (ngcc) (#49101) 2023-02-16 16:01:17 -08:00
index.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
package.json build: update minimum supported Node version from 16.13.0 -> 16.14.0 (#49771) 2023-04-11 07:56:31 -07:00
PACKAGE.md docs: add api doc to sub-packages (#33801) 2019-11-20 14:48:50 -08:00
public_api.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00