Skip to content

Tree widget doesn't display higher elements until a user selects one #5095

Closed
@williambrode

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

If you add elements to a tree that is not visible, then switch to view that tree (say with AppTabs), the tree will not render some elements at the top, until a user selects an element - at which point the whole tree will render.
8-26-2024 (23-44-00)

How to reproduce

  1. Clone the test case: https://github.com/williambrode/fyne-test-case/tree/TreeNotAppearingTillSelected
  2. Run it and click "Rerpo"
  3. Notice the tree does not render elements at the top.

Screenshots

No response

Example code

Full example here: https://github.com/williambrode/fyne-test-case/tree/TreeNotAppearingTillSelected

Fyne version

2.5.1

Go compiler version

1.22.3

Operating system and version

Windows 10

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

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions