-
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
entry.intersectionRatio
is not exactly 1.0
#3085
Comments
This is probably a bug in chrome not xterm. |
Where can we report this bug? Should it be chromium? https://chromium.googlesource.com/chromium/src/ |
There seems to exist a
But seems to have its own issues: #2998 (comment) |
Looks like you've already fixed it, no? atom-community/terminal@7a05451 We only care if it's partially visible (
|
We solved it by a workaround, but this is a xterm issue. xterm should not allow the following error: |
That error comes from the fit addon. Running fit when the canvas that has a 0 width or height will throw the error |
We could handle that better but in the end the right behavior is probably still throw, just with a better message about NaN terminal dimensions. |
I feel like fit being called on a hidden element or one with 0 width or height shouldn't throw an error. It should just check for that situation and return early without doing anything. I can't see a situation where that would be a problem. |
It already seems to do something similar if the terminal isn't connected to the dom xterm.js/addons/xterm-addon-fit/src/FitAddon.ts Lines 36 to 38 in 4e18a78
|
Details
Steps to reproduce
We hit a strange bug that was blocking us for a couple of days. Until we found the
intersectionRatio
is sometimes near to 1.0 (like 0.99) but not exactly 1.0.atom-community/terminal#5 (comment)
atom-community/terminal#5
I just wanted to let you know about this behavior.
We had a condition to create xterm Element only if
intersectionRatio === 1.0
which was not being triggered (this condition was to avoid bus-stop/x-terminal#57).Suggestion
Introduce a boolean value that shows if the
intersectionRatio
is almost 1.The text was updated successfully, but these errors were encountered: