-
Notifications
You must be signed in to change notification settings - Fork 9
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
fix: fix terminal resize when hidden #136
Conversation
3b5a6e3
to
5d993a7
Compare
5d993a7
to
3571a45
Compare
This might also fix #57 |
I am testing this. I will see if that error happens again! |
I again got the error: [Enter steps to reproduce:]
Atom: 1.49.0 x64 Stack TraceUncaught Error: This API only accepts integers
Commands
Non-Core Packages
|
@aminya what were you doing with x-terminal when you got the error? |
I just ran |
I was able to recreate it. It seems that if xterm is initialized with a hidden div than it gives itself a 0px height and fails to resize. I'm thinking this is a bug in xterm but I'm not exactly sure where it is. I managed to fix it by only initializing xterm after the div is visible. It was only happening in the bottom dock when the dock was closed and the Linter panel is in the bottom dock. For some reason Linter makes itself visible when the dock opens making the newly added item (x-terminal) not visible which makes xterm give itself a 0px height and fail when it tries to resize. |
Great! That's awesome that you found the reason.
This is really annoying. Can we make a PR to linter UI to fix this? I tend to open and close the terminal a lot, but this linter enforcing focus is annoying. |
22e0618
to
ace59a6
Compare
I created an issue on the linter-ui-default repo: steelbrain/linter-ui-default#582 |
🎉 This PR is included in version 9.0.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |
I am getting the same issue when doing resizing the terminal. <ResizeObserver It was providing NaN value to the resize function, could someone look into this. |
@Abhi2019 Can you create a new issue and fill out the template so we can track your error? |
fixes #135