Skip to content

ScrollView Does Not Re-measure Content When BindableLayout Collection Shrinks #34536

@LewieDun

Description

@LewieDun

Description

My issue is when a ScrollView contains a VerticalStackLayout with a BindableLayout.ItemsSource, removing items from the bound ObservableCollection does not trigger the ScrollView to re-measure its content. The layout retains the height it calculated for the previous collection size, leaving blank space below the remaining items.

I have tried quite a few things, and have come from the MAUIVerse after seeking help there.

When This Occurs

  • Trigger: Remove items from an ObservableCollection bound to BindableLayout.ItemsSource
  • Symptom: ScrollView height does not shrink; extra whitespace appears below remaining content
  • Scope: Affects nested BindableLayout structures (e.g., a VerticalStackLayout in ScrollView containing BindableLayout.ItemsSource, which itself contains another VerticalStackLayout with BindableLayout.ItemsSource)
  • Platforms: Confirmed on iOS Release (works on Andriod debug)
UI_Issue.mp4

Steps to Reproduce

Steps to Reproduce

  1. Run the app and navigate to the debug page
  2. Click Load Day 1 — each meal section displays 5 food items
  3. Click Load Day 2 — each meal section now has 0–1 items
  4. Observe: The ScrollView does not shrink to fit the smaller content; blank space remains below the items where they used to be

Expected Behavior

After clicking Load Day 2, the ScrollView should re-measure its content and resize to fit the new (smaller) height. No blank space should appear.

Actual Behavior

The ScrollView retains the height calculated for Day 1 (5 items per section). When Day 2 loads with 0–1 items, the content shrinks but the ScrollView container does not. Users see large blank areas of whitespace.

Link to public reproduction project repository

https://github.com/LewieDun/ScrollViewBug

Version with bug

10.0.20

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

No response

Affected platforms

iOS

Affected platform versions

IOS 18, 26

Did you find any workaround?

N/A

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-controls-scrollviewScrollViewi/regressionThis issue described a confirmed regression on a currently supported versionplatform/androidregressed-in-9.0.10s/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions