Skip to content

[iOS, Catalyst] BoxView in AbsoluteLayout does not return to default AutoSize for Height/Width after reset #31496

@NafeelaNazhir

Description

@NafeelaNazhir

Description

When a BoxView inside an AbsoluteLayout is defined with AutoSize for width and height, and later its bounds are changed to explicit values and then reset back to AutoSize, the reset fails on iOS. Its width and height remain fixed to the explicit values instead of recalculating back to the default AutoSize.

Expected Output Actual Output
Screen.Recording.2025-09-05.at.3.39.51.PM.mov
Screen.Recording.2025-09-05.at.3.53.09.PM.mov

Steps to Reproduce

  1. Run the attached sample MauiApp9.zip
  2. Add a BoxView inside an AbsoluteLayout with AbsoluteLayout.LayoutBounds="0,0,AutoSize,AutoSize".
  3. Tap Change Bounds button to change Layoutbounds value.
  4. Tap Reset button and observe that Height and Width are not reset to AutoSize in iOS and Catalyst.

Expected Behavior:
On reset, the BoxView should return to its initial size as defined by AutoSize.

Actual Behavior:
On iOS, the width and height remain stuck at the last explicitly set values.

Link to public reproduction project repository

No response

Version with bug

9.0.100 SR10

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

No response

Affected platforms

iOS, macOS

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-layoutStackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenterlayout-absolutepartner/syncfusionIssues / PR's with Syncfusion collaborationplatform/iosplatform/macosmacOS / Mac Catalysts/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions