-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
on Windows 10 NewAdaptiveGrid(0) blanks app window on start until resized #3669
Comments
What is the expected outcome when you add a grid that has 0 rows? This doesn't seem like a desirable configuration... |
I use grid to display images from GetWD or preferred folder. When no images found I show empty UI which allows to choose other folder. Simple code sample above is not my app. I put it here to locate the trouble. My app works as expected on Ubuntu but on Windows it needs window resize to display UI. I hoped that app will work identically on different platforms as stated :) |
I agree that it should work as stated, but "0 columns" is quite an edge case, what is the expected behaviour? |
IMO expected grid behavior with 0 rows/columns is to display nothing, something like Label does with empty string. -- tab := container.NewTabItemWithIcon("Choice", theme.GridIcon(), container.NewAdaptiveGrid(0))
++ tab := container.NewTabItemWithIcon("Choice", theme.GridIcon(), widget.NewLabel("")) Unlike the grid, the label works correctly both on Linux and on Windows in such "edge" case :) |
The PR #3689 should fix this inconsistency. |
Thank you. I attached a software crutch to workaround this case in app - an empty text canvas in onecolumn grid :) |
Fixed on develop ready for next release |
Checklist
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
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
The text was updated successfully, but these errors were encountered: