Skip to content

Entry without scrollable content prevents scrolling of outside scroller #1939

Closed
@Jacalz

Description

Describe the bug:

An empty (or just not with enough content to scroll) will prevent the scrolling of an external scroller even though there is nothing to scroll within it.

To Reproduce:

Steps to reproduce the behavior:

  1. Make the window large enough that it can be scrolled.
  2. Move the mouse to be over the label.
  3. Scroll and notice that it works as expected.
  4. Move the mouse to be over the entry.
  5. Scroll and notice that it does not scroll.

Screenshots:

scolling-not-in-entry

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("Entry scroll")

	w.SetContent(container.NewScroll(
		container.NewVBox(
			widget.NewEntry(),
			widget.NewLabel("Scroll on me!"),
		),
	),
	)

	w.ShowAndRun()
}

Device (please complete the following information):

  • OS: Linux
  • Version: 5.10.12
  • Go version: 1.15.7
  • Fyne version: 2.0.0

Activity

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

Metadata

Assignees

Labels

blockerItems that would block a forthcoming releasebugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions