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

Bug: CSS property scroll-padding not working #6016

Open
Danishsjjd opened this issue May 3, 2024 · 1 comment
Open

Bug: CSS property scroll-padding not working #6016

Danishsjjd opened this issue May 3, 2024 · 1 comment
Labels
contribution-week Issues that are good to be picked up for the contribution week good first issue Good for newcomers

Comments

@Danishsjjd
Copy link

Danishsjjd commented May 3, 2024

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

Link to code example: https://stackblitz.com/edit/facebook-lexical-znjtmx

The current behavior (With JavaScript enabled)

Screen.Recording.2024-05-03.at.6.50.48.AM.mov

The expected behavior (without javascript)

Screen.Recording.2024-05-03.at.6.51.45.AM.mov
@Danishsjjd Danishsjjd changed the title Bug: Scroll-Padding not working Bug: CSS property scroll-padding not working May 3, 2024
@StyleT
Copy link
Contributor

StyleT commented May 6, 2024

Another video to showcase the issue... Notice scroll jump of the page when I start typing in. That jump shouldn't be there.

Screen.Recording.2024-05-06.at.3.51.58.PM.mov

@StyleT StyleT added good first issue Good for newcomers contribution-week Issues that are good to be picked up for the contribution week labels May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution-week Issues that are good to be picked up for the contribution week good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants