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

administrator interface: page scrolling up at each keypress #1038

Closed
andrearicci opened this issue Jun 12, 2022 · 3 comments · Fixed by #1050
Closed

administrator interface: page scrolling up at each keypress #1038

andrearicci opened this issue Jun 12, 2022 · 3 comments · Fixed by #1050

Comments

@andrearicci
Copy link

When I try to edit my blog in the administrator interface, and the window is highr than the viewport, and I'm editing at the bottom, each keypress makes the window immediatilly scroll to the top.
Lektor, version 3.3.4 on firefox 101.0.1 - win 10

@truenicoco
Copy link

truenicoco commented Jul 14, 2022

Can confirm this happens to me too. I tried both firefox and chrome on Mac OS X. Lektor is running on a linux box though, but I am not sure it matters for admin interface stuff.

This is pretty serious since it makes the admin interface almost useless.

dairiki added a commit to dairiki/lektor that referenced this issue Jul 19, 2022
dairiki added a commit to dairiki/lektor that referenced this issue Jul 19, 2022
@dairiki
Copy link
Contributor

dairiki commented Jul 20, 2022

See #1038, which describes the same or a similar problem.

PR #1045 proposes a fix.

dairiki added a commit to dairiki/lektor that referenced this issue Jul 21, 2022
This seems to fix the annoying scrolling behaviour described in lektor#1038.

https://github.com/fregante/fit-textarea
dairiki added a commit to dairiki/lektor that referenced this issue Jul 22, 2022
This is yet another try at fixing the wonky scrolling described in lektor#1038.

Based on ideas from this post:

https://css-tricks.com/the-cleanest-trick-for-autogrowing-textareas/
dairiki added a commit to dairiki/lektor that referenced this issue Jul 22, 2022
This is yet another try at fixing the wonky scrolling described in lektor#1038.

Based on ideas from this post:

https://css-tricks.com/the-cleanest-trick-for-autogrowing-textareas/
dairiki added a commit to dairiki/lektor that referenced this issue Jul 24, 2022
This is yet another try at fixing the wonky scrolling described in lektor#1038.

Based on ideas from this post:

https://css-tricks.com/the-cleanest-trick-for-autogrowing-textareas/
dairiki added a commit to dairiki/lektor that referenced this issue Jul 25, 2022
This is yet another try at fixing the wonky scrolling described in lektor#1038.

Based on ideas from this post:

https://css-tricks.com/the-cleanest-trick-for-autogrowing-textareas/
dairiki added a commit to dairiki/lektor that referenced this issue Jul 27, 2022
This is yet another try at fixing the wonky scrolling described in lektor#1038.

Based on ideas from this post:

https://css-tricks.com/the-cleanest-trick-for-autogrowing-textareas/
dairiki added a commit that referenced this issue Jul 27, 2022
This (I hope) fixes the wonky scrolling described in #1038.

This is a backport of the first commit in PR #1050.  It omits all
the hairy bits required to enable manual drag-handle resizing of
textareas.

(I want to get this into the stable 3.3 branch, so that we can have
a working release.)

Based on ideas from this post:

https://css-tricks.com/the-cleanest-trick-for-autogrowing-textareas/
@dairiki
Copy link
Contributor

dairiki commented Jul 27, 2022

I think that hopefully🤞 this is fixed in release 3.3.6. (If not, please reopen.)

@dairiki dairiki closed this as completed Jul 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment