linux: a fitted panel realized before its first fit keeps its options size
I maintainer di solito rispondono entro 1 giorno
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Context
fitPanel (internal/platform/linux/panel.go, the function that applies driver.WindowFitSize to a panel) sizes the panel only with gtk_window_set_default_size. GTK honours a default size only until the window is realized. A panel that gets realized before its first fit therefore keeps its PanelOptions size instead of its content's size. The panel can be realized before its first fit by anything that needs its X11 window or calls gtk_widget_realize before the first show; reading its X11 window for stacking levels is one example.
Why it matters
A fitted panel (a popover, a tooltip-like window, a docked panel) shows at the wrong size, larger or smaller than its content, depending only on whether some code touched its native window early. The ordering dependency is invisible to the app. It surfaced as the CI timeout of TestTransparentFittedPanelKeepsItsAnchor in #2041, which called x11Window() before ShowAt.
Proposal
When the panel is already realized, fitPanel should resize the live window too (gtk_window_resize, or set the size request so GTK reallocates), not only the default size, and keep the existing placement step afterwards. Unrealized panels can keep using the default size.
Acceptance
- Under
xvfb-run, a fitted panel whose X11 window was read beforeShowAtshows at its fitted size (repro: inTestTransparentFittedPanelKeepsItsAnchor, runhost.onLoop(t, func() { p.x11Window() })beforeShowAt; today the snapshot stays at the options size, 280x240, instead of 180x80). - A fitted panel that refits while visible resizes and keeps its anchor.
- Lingua principale
- Go
- Stelle
- 684
- Fork
- 41
- Merge medio
- 8h 8m
- PR unite (30g)
- 911
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di nsgo-dev/nsgo
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
macos: TestInputMethodCommitAndSinkCandidates times out waiting for focus after other window testsForse già presa @houko l’ha presa oggi. Aperta
nsgo-dev/nsgo#2157 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
base: Radio has no LabelFunc or HintFunc, unlike Checkbox and ButtonForse già presa @houko l’ha presa oggi. Aperta
nsgo-dev/nsgo#2059 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
apple: TestWebMuteSuspendsMedia aborts the test process removing observers it never addedForse già presa @oneo-me l’ha presa oggi. Aperta
nsgo-dev/nsgo#2053 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
nsgotest: no step clicks a tray icon, so a tray's menu and panel cannot be testedForse già presa @houko l’ha presa oggi. Aperta
nsgo-dev/nsgo#2051 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di nsgo-dev/nsgo
Issue simili
-
iOS: Clear Context (/clear) and model picker fallback use negative agent check instead of isClaudeAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
go good first issue test
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 2 giorni
-
bug github_actions good first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
libr-forum/libr#77 ·
I maintainer di solito rispondono entro 1 giorno
-
[UI] Guard webApis against undefined window in SSR environmentsForse già presa @madhavzanwar l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
kind/enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno