Skip to content
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

add test for wrong clientHeight #4965

Merged
merged 1 commit into from
Mar 20, 2021
Merged

add test for wrong clientHeight #4965

merged 1 commit into from
Mar 20, 2021

Conversation

webzwo0i
Copy link
Member

Small test case for inner height regression, ie clientHeight should be identical to scrollHeight on pads with few lines, but should be less than scrollHeight on pads with lots of lines.

This is useful as a guard against a regression where scrolling, line number links (and maybe other things that depend on getInnerHeight or clientHeight) stopped working. The solution to this problem was cb9f6d6

See #4954 (comment) for details why this test should be extended to check if the editor "has grown" when the number of pad lines reach below the viewport area and why I struggled implementing it.

@JohnMcLear JohnMcLear merged commit b250cea into develop Mar 20, 2021
@JohnMcLear JohnMcLear deleted the inner-height-test-case branch March 20, 2021 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants