If I disable javascript and apply scroll-padding css to html it just works but when I enable javascript in playground, the scroll-padding only works if the length of node text is greater then 1
Lexical version: 0.14.5
Steps To Reproduce
From lexical documentation home page plain text example, just apply scroll padding to html in style.css
If I disable javascript and apply
scroll-padding
css to html it just works but when I enable javascript in playground, thescroll-padding
only works if the length of node text is greater then 1Lexical version: 0.14.5
Steps To Reproduce
From lexical documentation home page plain text example, just apply scroll padding to
html
instyle.css
Link to code example: https://stackblitz.com/edit/facebook-lexical-znjtmx
The current behavior (With JavaScript enabled)
https://github.com/facebook/lexical/assets/92915951/65df6227-ce5d-44a2-8895-b689c84816be
The expected behavior (without javascript)
https://github.com/facebook/lexical/assets/92915951/c1cf08d1-4fdc-4ac6-9145-f1b9de398dbf