This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Repository navigation
Fix hidden input placement - #946
Merged
Merged
Conversation
Regression from the speedup stuff
Also brings the input into view when the input is focused so we dont scroll the scrollView and blank the editor
The test calls hiddenInput.focus(), but in reality, nothing external to the editor can trigger this. I'd rather just have bringHiddenInputIntoView() called in one place, but this is insurance.
Contributor
There was a problem hiding this comment.
How come you only need the px suffix on top and not left?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In the speedup work i've been doing, I changed the
editor.hiddenInputto use the cursorView's style attribute rather than$.offset()because it is much faster. However the hiddenInput and the cursorView had different parents, so was placing the hidden input in the wrong spot. Occasionally the hiddenInput would get focus and scroll thescrollViewwhich blanks the editor window.Soooo, this moves the hiddenInput to the underlayer, and places it in the visible area when it's focused, keeping the speedup and mitigating the editor blank screen.