Skip to content
Commit 0c0e20ac authored by Juyoung Kim's avatar Juyoung Kim Committed by Chromium LUCI CQ
Browse files

Fix intrinsic size of input when spin-box width is a percent-value

In the past, even when the spin-box was percent-value, the intrinsic
size of the input was calculated by adding the value as in the case of
fixed-value.

In this patch, When it is percent-value, the following calculation is
performed.

result = result + result * p / (100 -p)
(where p is a percent value (0 <= p < 100))

Bug: 1138700
Change-Id: I76a5db1806628b71c02cf31305bb92bc1d96b50a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3627410


Reviewed-by: default avatarKent Tamura <tkent@chromium.org>
Commit-Queue: Kent Tamura <tkent@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1012850}
parent 593c8bc4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment