Skip to content

on Windows 10 NewAdaptiveGrid(0) blanks app window on start until resized #3669

Closed
@vinser

Description

Checklist

  • I have searched the issue tracker for open issues that relate to the same problem, before opening a new one.
  • This issue only relates to a single bug. I will open new issues for any other problems.

Describe the bug

On Windows 10 when the app starts the single base window is empty.
When the window is resized or when it is minimized and then maximized, all elements in the window become visible.
No matter what theme is used custom or default.
I built the app using MSYS2 and TDM-GCC the result was the same.
On my SBC with Ubuntu arm64 it builds and works fyne.

How to reproduce

Run the code below and try to resize app window

Screenshots

No response

Example code

package main

import (
	"fyne.io/fyne/v2"
	"fyne.io/fyne/v2/app"
	"fyne.io/fyne/v2/container"
	"fyne.io/fyne/v2/theme"
)

func main() {
	a := app.New()

	tab := container.NewTabItemWithIcon("Choice", theme.GridIcon(), container.NewAdaptiveGrid(0))

	contentTabs := container.NewAppTabs(tab)
	contentTabs.SetTabLocation(container.TabLocationBottom)

	wMain := a.NewWindow("TABS")
	wMain.Resize(fyne.NewSize(1344, 756))
	wMain.CenterOnScreen()
	wMain.SetContent(contentTabs)
	wMain.ShowAndRun()
}

Fyne version

2.3.1

Go compiler version

go1.20.1 windows/amd64

Operating system

Windows

Operating system version

Windows 10 22H2

Additional Information

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    unverifiedA bug that has been reported but not verified

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions