GraphiteEditor / GraphiteEditor/Graphite

[Bug] Graphite Window Draw and Artboard Offset

未关闭
#3,607 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Rust
星标
27.2k
派生
1.3k
平均合并
20 小时 5 分钟
30 天内合并 PR
57

描述

# graphite-window-draw-and-artboard-offset

## Specs

[x] Operating System: Debian GNU/Linux 13.0 (trixie) \
[x] Desktop Environment: sway/WM \
[x] Terminal Emulator: foot \
[x] Shell: fish 4.0.2 \
[x] Graphite Version: Alpha 4 (Flatpak) \
[x] Hardware: Framework 13" 7840U \
[x] Resoultion: 2880 x 1920

## Description
This was present RC-1 and it's probably more of a window manager thing
The window can draw kinda weird when opened fresh in a tiling window
and exascerbates when resizing.

Creating a new document and tabbing around the interface can force it to redraw
correctly.
You'll also notice that the canvas is a bit offset when opening said new
document from this state.
This can easily be replicated be using `ctrl + O` to open a file picker window
as well.

Basically anything that resizes the Graphite window will make this bug present.

## Steps to reproduce
1. Close all documents from any previous session
2. On a fresh sway workspace, open any other program window in tiling mode
3. Close and reopen Graphite
4. Resize Graphite via swayWM's resize mode
5. Observe the extra negative space in Graphite's UI
6. Observe that the four initial options are not clickable:
1. New Document
2. Open Document
3. Open Demo Artwork
4. Support the Development Fund
7. Use `ctrl + n` or `ctrl + ,` to open a Graphite dialogue
8. Observe that the window redraws itself.
9. Press `tab` or click inside the dialogue box
10. Observe that the window now draws correctly.
11. Once the window draws correctly, create a new document
12. Observe that the artboard is not clearly visible and is offset on the
positive x and y axes.

## Expected behavior
Graphite resizes appropriately without need for user intervention.

## Screenshots
Window draw issue when resizing:
https://0x0.st/Po7y.mp4

Canvas offset (only seems to appear along with the resizing issue):
https://0x0.st/Po7w.mp4

## Logs
N/A

贡献指南

这个仓库没有索引到贡献指南

调研方向

未指定源文件或测试。首先按照列出的步骤在使用 sway 的 Debian 上重现问题,包括调整窗口大小、打开对话框以及创建文档;然后跟踪窗口重绘和画板定位的行为。当调整大小不再留下负空间或导致启动选项无法点击,并且新创建的画板位置正确时,即视为完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
linux, rust
领域
computer-graphics, desktop
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。