プロジェクト

全般

プロフィール

Vote #81029

未完了

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

Admin Redmine さんが約2年前に追加. 約2年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
UI_10
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
10
version_id:
0
issue_org_id:
33910
author_id:
3866
assigned_to_id:
0
comments:
1
status_id:
1
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

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 https://bugs.chromium.org/p/chromium/issues/detail?id=890248, 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.


journals

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

<pre><code class="js">
// fixes https://bugs.chromium.org/p/chromium/issues/detail?id=890248
// applied to chrome on windows and linux
var isChrome = !!window.chrome && (!!window.chrome.webstore || !!window.chrome.runtime);
if ((navigator.appVersion.indexOf("Win") != -1 ||
navigator.appVersion.indexOf("Linux") != -1) &&
isChrome
) {
$('textarea').on('keydown', function(event) {
if (event.key === 'PageUp' || event.key === 'PageDown') {
const cursorPosition = event.key === 'PageUp' ? 0 : event.target.textLength;

event.preventDefault();
event.target.setSelectionRange(cursorPosition, cursorPosition);
}
});
}
</code></pre>
--------------------------------------------------------------------------------

Admin Redmine さんが約2年前に更新

  • カテゴリUI_10 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0