DevTools: fix Console stick-to-bottom on load, enter
Fixes 2 stick to bottom cases - Prompt has text, but is scrolled out of view. User presses 'Enter'. Browsers usually scroll an field into view on input events, but Console preventsDefault to avoid adding a newline. Now, we will emulate the scroll. - Page logs a ton of messages, Console opened for the first time. CodeMirror asynchronously resized prompt height on load, which broke stick to bottom. This CL changes layout so that prompt height does not grow on editor load. Bug: 863664 Change-Id: Ia25a71100d9a895d4c8c710b36ba1d8b76d76990 Reviewed-on: https://chromium-review.googlesource.com/c/1321575Reviewed-by:Joel Einbinder <einbinder@chromium.org> Commit-Queue: Erik Luo <luoe@chromium.org> Cr-Commit-Position: refs/heads/master@{#605936}
Showing
Please register or sign in to comment