Reserve 1 DIP for the caret in Textfield default/min width calculations.
This matches what the underlying RenderText already does. It probably doesn't matter much, since the width itself is "average character width * n", which isn't going to result in a reliable pixel-precise value, but it does mean that, on Windows, sizing a Textfield to n characters (which are in theory based on the width of 'x'), then typing n 'x's, no longer results in the Textfield scrolling slightly. Bug: none Change-Id: Idea1473438037836f8a50e260c5b2ac261830a84 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2421028 Commit-Queue: Peter Kasting <pkasting@chromium.org> Auto-Submit: Peter Kasting <pkasting@chromium.org> Reviewed-by:Peter Boström <pbos@chromium.org> Cr-Commit-Position: refs/heads/master@{#809942}
Showing
Please register or sign in to comment