Canvas doesn't rerender on moving left by text field

オープン
#4,393 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
58/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
rust

調査の方向性

Text Tool (T) のフローと、テキストフィールドが表示されている artboard を超えて大きくなり、左に移動する際の canvas の挙動から始めます。debug messages を使って、この自動的な移動を scrollbar やマウスの移動と比較し、特に Send Layout/Redraw リクエストが発行されるかどうかを確認します。基礎となる canvas が再描画され、灰色の背景が表示されなくなれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Description

When inserting a text field, and on updating it's content, the text field occasionally moves left if its length is more and doesn't fit the currently displayed canvas, it is done so as to accommodate the cursor to see what is currently being written. In doing so, it doesn't re render the underlying canvas on the right, rather shows the grey background. Reported first on discord.

Reproduce the issue

  1. Open a new document
  2. Select "Text Tool (T)".
  3. Start writing something near the left side in a zoomed artboard and you should see the issue.

Possible Culprits & Solution

When moving the canvas to fit the text, the frontend doesn't call a Send Layout/Redraw request which is generally sent when moving the canvas with scrollbars or mouse (observed via the debug messages). So, possible solution would be to trigger a redraw/Layout change request when length exceeds the current length and text begins to move to the left.

主要言語
Rust
スター
27.8k
フォーク
1.3k
平均マージ
10時間 53分
マージ済み PR(30日)
195

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

GraphiteEditor/Graphite のほかの issue

GraphiteEditor/Graphite の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。