We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60a3917 commit b47b0c1Copy full SHA for b47b0c1
internal/driver/glfw/window.go
@@ -66,6 +66,7 @@ func (w *window) Resize(size fyne.Size) {
66
w.requestedWidth, w.requestedHeight = width, height
67
if runtime.GOOS != "js" {
68
w.view().SetSize(width, height)
69
+ w.processResized(width, height)
70
}
71
})
72
@@ -76,9 +77,10 @@ func (w *window) FixedSize() bool {
76
77
78
func (w *window) SetFixedSize(fixed bool) {
79
w.fixedSize = fixed
- if w.view() != nil {
80
- w.runOnMainWhenCreated(w.fitContent)
81
- }
+ w.runOnMainWhenCreated(func() {
+ w.fitContent()
82
+ w.processResized(w.width, w.height)
83
+ })
84
85
86
func (w *window) Padded() bool {
0 commit comments