Skip to content

Bug report: WrapLayout #70

Closed
Closed

Description

@Poker-sang

Description

  • When all the items in WrapLayout are Collapsed, the method WrapLayoutState.GetHeight() would throw "Nullable object must have a value."
  • Once an item is collapsed in the WrapLayout(such as a Image that is loaded later), it would not be visible without refreshing.

Possible solution

  • Add a null discriminant statement to WrapLayoutState.GetHeight()
  • Still measure and arrange collapsed items

Activity

  1. added
    bug
    on May 26, 2023
  2. niels9001 commented on May 26, 2023

    @niels9001
    Collaborator

    @Poker-sang Thanks for flagging this!

    Is this something you'd like to PR a fix for 😊?

  3. Poker-sang commented on May 26, 2023

    @Poker-sang
    ContributorAuthor

    Yes, I can fix this.

    btw I implement another commonly used layout JustifiedLayout. Do you think it could be added to the Toolkit?

  4. niels9001 commented on May 26, 2023

    @niels9001
    Collaborator

    Yes, I can fix this.

    btw I implement another commonly used layout JustifiedLayout. Do you think it could be added to the Toolkit?

    Awesome.. great to hear!

    JustifiedLayout sounds interesting.. feel free to open a Discussion (a.k.a. new Experiment) here so we can discuss it there! https://github.com/CommunityToolkit/Labs-Windows/discussions

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

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions