Patch #33910

Rendering bug in Chrome Windows and Linux when pressing PageUp in Textarea

Added by Felix Schäfer about 2 years ago. Updated about 2 years ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:


Target version:-


A rendering bug in Chrome on Windows and Linux leads to the content of the window shifting to the left when pressing PageUp in a Textarea, for example on the issue edit page. In some cases this can lead to UI elements, for example the "Edit" button, to not be visible anymore.

This is the page for the bug in Chrome, it seems to exist since 2018 and has not been resolved since. We have observed this happening on Redmine too, not by much with the default theme but a lot with the Planio theme. We have a gif demonstrating this, unfortunately it is too large to upload here.


#1 Updated by Felix Schäfer about 2 years ago

We have fixed this in the Planio theme with the following js snippet:

    // fixes
    // applied to chrome on windows and linux
    var isChrome = !! && (!! || !!;
    if ((navigator.appVersion.indexOf("Win") != -1 || 
      navigator.appVersion.indexOf("Linux") != -1) && 
    ) {
      $('textarea').on('keydown', function(event) {
        if (event.key === 'PageUp' || event.key === 'PageDown') {
          const cursorPosition = event.key === 'PageUp' ? 0 :;

, cursorPosition);

Also available in: Atom PDF