From c1c72fa4173851e84787efc0d9274ec9088b73d3 Mon Sep 17 00:00:00 2001 From: Stu Leak Date: Fri, 16 Jan 2026 16:08:52 -0500 Subject: [PATCH] Let Fyne size content after fullscreen --- main.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/main.go b/main.go index 4b95d62..63d05e0 100644 --- a/main.go +++ b/main.go @@ -1860,7 +1860,6 @@ func (r *mouseButtonRenderer) BackgroundColor() color.Color { func (s *appState) setContent(body fyne.CanvasObject) { update := func() { - currentSize := s.window.Canvas().Size() bg := canvas.NewRectangle(backgroundColor) if body == nil { s.window.SetContent(bg) @@ -1869,9 +1868,6 @@ func (s *appState) setContent(body fyne.CanvasObject) { // Wrap content with mouse button handler wrapped := newMouseButtonHandler(container.NewMax(bg, body), s) s.window.SetContent(wrapped) - if currentSize.Width > 0 && currentSize.Height > 0 { - wrapped.Resize(currentSize) - } } // Use async Do() instead of DoAndWait() to avoid deadlock when called from main goroutine