GraphiteEditor / GraphiteEditor/Graphite

[Bug] Graphite Window Draw and Artboard Offset

Aperta
#3,607 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Rust
Stelle
27.2k
Fork
1.3k
Merge medio
20h 5m
PR unite (30g)
57

Descrizione

# 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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.