-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto scroll not working when viewport height is set #934
Comments
If you touch In VS Code I align the terminal to the bottom, rather than the top, that makes the padding move to the top which is less noticeable. |
I figured as much. I'm also trying to align to the bottom but I can't for the life of me figure it out. Due to the resizable nature of the panel, I have specified |
@twifty you can check this file out for what VS Code does https://github.com/Microsoft/vscode/blob/465c3ed79335a971cbce040f003d205a4c141e15/src/vs/workbench/parts/terminal/electron-browser/media/terminal.css#L44 There's some flexbox as well as absolute positioning to the bottom, can't remember the exact reason for that. |
Good luck 😃 |
Thanks, I finally figured it out though. Nested flexboxes. I had to |
Details
Steps to reproduce
I'm trying to remove the half line gap below the viewport as described in #762. My method is to set the height on the viewport after an element resize event:
While this works, the side affect is when calling
Terminal.write
it no longer auto scrolls to the bottom.Is there anything I can do to get the desired behaviour?
The text was updated successfully, but these errors were encountered: