Giter Club home page Giter Club logo

Comments (6)

github-actions avatar github-actions commented on June 25, 2024

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

from maui.

RoiChen001 avatar RoiChen001 commented on June 25, 2024

I can repro this issue at Android platform on the latest 17.11.0 Preview 2.0(8.0.7&8.0.60).

from maui.

drasticactions avatar drasticactions commented on June 25, 2024

I don't believe this is a bug. I think this was a breaking change with StackLayout introduced with MAUIs introduction with net6.0.

StackLayout does not automatically expand elements inside it. That includes CollectionView. If you want this to work, you would change your outer StackLayout to a Grid (With something like Auto, *, Auto for the Row Layout).

@PureWeen What do you think?

from maui.

domitorosan avatar domitorosan commented on June 25, 2024

I don't believe this is a bug. I think this was a breaking change with StackLayout introduced with MAUIs introduction with net6.0.

StackLayout does not automatically expand elements inside it. That includes CollectionView. If you want this to work, you would change your outer StackLayout to a Grid (With something like Auto, *, Auto for the Row Layout).

@PureWeen What do you think?

You are correct. I do not expect StackLayout to expand its elements, but it does. When I place a CollectionView inside a StackLayout, I expect it to shrink to its content size. If there are no items in the CollectionView, I expect it to have a height of 0, but instead, it expands to a giant size.
In general, I don't think the height of anything should be over 6 million in any circumstances.

from maui.

PureWeen avatar PureWeen commented on June 25, 2024

yea, ultimately I'd say @drasticactions is right, but, it seems like in this scenario the dimensions of the CV should be zero since there's not an emptyitemtemplate

from maui.

domitorosan avatar domitorosan commented on June 25, 2024

Also, if you add EmptyView it doesn't help either. You see EmptyView in that case, yet the height remains over millions. That was how I discovered the issue in the first place, I expected CollectionView to display EmptyView fitting to its size, not rocketing the height into the sky.

from maui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.