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

Mobile: open pop-up (or any other overlay) does not play well with window-head #4856

Open
2 tasks done
toaster opened this issue May 21, 2024 · 2 comments
Open
2 tasks done
Labels
unverified A bug that has been reported but not verified

Comments

@toaster
Copy link
Member

toaster commented May 21, 2024

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

When opening a pop-up (or other overlays) on a subsequent mobile window (i.e., one with a window-head), it disables all interaction outside the pop-up including the “close window” button (good) but it does not expand the transparent overlay background to the window-head and thus does not close the pop-up when tapping there (bad).
This leads to the impression that the “close window” button is broken, if there’s still a pop-up open.

How to reproduce

  1. Open a subsequent mobile window.
  2. Open a pop-up there.
  3. Tap on the “close window” button in the window-head while the pop-up is still open.

Screenshots

No response

Example code

package main

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

func main() {
	a := app.New()
	w := a.NewWindow("main")
	b := widget.NewButton("Open Window", func() {
		sw := a.NewWindow("sub")
		sw.SetContent(
			container.NewVBox(
				widget.NewSelect([]string{"one", "two"}, func(string) {}),
			),
		)
		sw.Show()
	})
	w.SetContent(b)
	w.ShowAndRun()
}

Fyne version

develop

Go compiler version

1.22.1

Operating system and version

macOS 14.5

Additional Information

No response

@toaster toaster added the unverified A bug that has been reported but not verified label May 21, 2024
@andydotxyz
Copy link
Member

To be consistent with other platforms shouldn't the close window button still work even if there is a popup over the content?

@toaster
Copy link
Member Author

toaster commented May 22, 2024

Yeah, that would be one way to solve the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
unverified A bug that has been reported but not verified
Projects
None yet
Development

No branches or pull requests

2 participants