Skip to content
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

Menu over Content #1973

Closed
tehsphinx opened this issue Feb 18, 2021 · 3 comments
Closed

Menu over Content #1973

tehsphinx opened this issue Feb 18, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@tehsphinx
Copy link
Contributor

tehsphinx commented Feb 18, 2021

Describe the bug:

When using Resize to set a reasonable size for the window before showing it, the menu overlaps the content.

To Reproduce:

Run the sample code below using go run -tags=no_native_menus . (tested on Mac)

Screenshots:

image

Example code:

package main

import (
	"fyne.io/fyne/v2"
	"fyne.io/fyne/v2/app"
	"fyne.io/fyne/v2/widget"
)

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

	w := a.NewWindow("Test App")
	w.Resize(fyne.Size{
		Width:  400,
		Height: 300,
	})
	w.SetMainMenu(fyne.NewMainMenu(fyne.NewMenu("Menu")))
	w.SetContent(widget.NewLabel("Label"))

	w.ShowAndRun()
}

Device:

  • MacOS (but should be the same on all systems when using non-native menu)
  • Big Sur 11.2.1
  • go version go1.16 darwin/amd64
  • fyne.io/fyne/v2 v2.0.0
@tehsphinx tehsphinx added the bug Something isn't working label Feb 18, 2021
@tehsphinx
Copy link
Contributor Author

tehsphinx commented Feb 18, 2021

It works if the Resize Command is moved below setting the main menu. Should probably still be fixed.

@andydotxyz
Copy link
Member

This should have been fixed in #1138 - it felt like the same as issue #1105.
Looks like it has reappeared :(

@andydotxyz
Copy link
Member

On develop for testing :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants