Skip to content

Commit b47b0c1

Browse files
committed
Ensure fixed size windows fill correctly
1 parent 60a3917 commit b47b0c1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

internal/driver/glfw/window.go

+5-3
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ func (w *window) Resize(size fyne.Size) {
6666
w.requestedWidth, w.requestedHeight = width, height
6767
if runtime.GOOS != "js" {
6868
w.view().SetSize(width, height)
69+
w.processResized(width, height)
6970
}
7071
})
7172
}
@@ -76,9 +77,10 @@ func (w *window) FixedSize() bool {
7677

7778
func (w *window) SetFixedSize(fixed bool) {
7879
w.fixedSize = fixed
79-
if w.view() != nil {
80-
w.runOnMainWhenCreated(w.fitContent)
81-
}
80+
w.runOnMainWhenCreated(func() {
81+
w.fitContent()
82+
w.processResized(w.width, w.height)
83+
})
8284
}
8385

8486
func (w *window) Padded() bool {

0 commit comments

Comments
 (0)