Skip to content

add test for wrong clientHeight#4965

Merged
JohnMcLear merged 1 commit intodevelopfrom
inner-height-test-case
Mar 20, 2021
Merged

add test for wrong clientHeight#4965
JohnMcLear merged 1 commit intodevelopfrom
inner-height-test-case

Conversation

@webzwo0i
Copy link
Copy Markdown
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