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

WYSIWYGEditorView#lineHeight is doing it wrong. #14

Open
dcporter opened this issue Jun 4, 2014 · 0 comments
Open

WYSIWYGEditorView#lineHeight is doing it wrong. #14

dcporter opened this issue Jun 4, 2014 · 0 comments

Comments

@dcporter
Copy link
Member

dcporter commented Jun 4, 2014

There's an issue where if your cursor winds up off the bottom of the editable element (e.g. in the common case of hitting enter to add a new line at the end), the browser repositions the element to keep the cursor visible. A split second later, the view catches up and resizes itself, moving everything back to where it's supposed to be. This creates an ugly jump effect. My solution was to force the developer to specify a lineHeight property – this value is added to the view's height to ensure that the view has enough space at the bottom to allow the user to hit enter without triggering the jump-around.

This is a decidedly unfriendly API. Would be great to figure out another way to resolve or work around this problem.

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

No branches or pull requests

1 participant