Skip to content

[Android][MAUI] Auto-Sizing WebView Displays Incorrect Height When Hosted Inside SfAssistView/SfListView During Scroll Virtualization #37028

Open

Description

@Kamalesh-Periyasamy

Description

When a custom auto-sizing WebView is hosted inside an SfAssistView response template (also reproducible with SfListView and potentially MAUI ListView), the WebView height is not consistently maintained during scrolling on Android.

The custom WebView loads HTML content containing an editable

container and automatically adjusts its height based on the rendered content. Height updates are triggered by a JavaScript MutationObserver, which detects content changes, calculates the current HTML content height, and sends the value back to the MAUI layer. The WebView height is then updated programmatically.

Initially, chat items are rendered with the correct height. However, while scrolling through the AssistView items, some WebView instances randomly display an incorrect height:

  • Some WebViews are compressed and appear much smaller than their content.
  • Some WebViews expand with excessive empty space.
  • The incorrect size occurs regardless of the actual content height.
  • After additional scrolling, the affected items are re-rendered and return to their expected height.

The issue appears to be related to item recycling, virtualization, or layout measurement updates within the parent scrolling control when hosting dynamically sized WebViews.

Actual Behavior

  • Some WebView items randomly display incorrect heights while scrolling.
  • Certain items appear truncated with insufficient height.
  • Other items display excessive blank space with larger-than-expected height.
  • The displayed height does not match the actual HTML content height.
  • After further scrolling, the affected WebViews are remeasured and return to the correct size.

Expected Behavior

  • Each WebView should consistently maintain the height corresponding to its rendered HTML content.
  • Height calculations returned from the HTML page should be accurately reflected in the UI.
  • Scrolling, item recycling, or virtualization should not cause WebView height inconsistencies.
  • WebView items should remain correctly sized regardless of scrolling direction or frequency.

Environment

  • .NET MAUI
  • Android
  • Syncfusion SfAssistView
  • Syncfusion SfListView (also reproducible)
  • Potentially reproducible with MAUI ListView
  • Custom Auto-Sizing WebView
  • HTML content loaded via WebView Source

Notes

  • The issue is observed primarily on Android.
  • Initial rendering usually displays the correct height.
  • The problem becomes noticeable after item virtualization/recycling during scrolling.
  • A sample application demonstrating the issue and an AssistView demo have been attached.
  • Height calculation from the HTML content appears to be correct; however, the rendered item size is occasionally inconsistent until a subsequent layout refresh occurs.
Output-Demo.mp4

Steps to Reproduce

  1. Create a custom WebView with automatic height adjustment.
  2. Load an HTML page containing an editable content container (div).
  3. Use a JavaScript MutationObserver to monitor content changes.
  4. Calculate the HTML content height whenever the content changes.
  5. Return the calculated height to the MAUI layer and update the WebView height request.
  6. Place the custom WebView inside an SfAssistView response template.
  7. Populate the AssistView with multiple chat messages [5 chats] containing WebView content of varying heights.
  8. Launch the application on Android.
  9. Scroll through the chat messages repeatedly, both upward and downward.
  10. Attached the issue reproducible sample below.

RteTesing.zip

Link to public reproduction project repository

No response

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

Unknown/Other

Affected platforms

Android

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

Activity

  1. HarishKumarSF4517 commented on Aug 3, 2026

    @HarishKumarSF4517
    Contributor

    This issue has been validated in Visual Studio Code 1.130.0 with .NET MAUI versions 10.0.20, 10.0.60, 10.0.80 & 10.0.90. It can be reproduced on Android platform in 10.0.20 version. I have attached the output for reference:
    Note: The app was crashes on 10.0.80 & 10.0.90 version

    Screen.Recording.2026-08-03.at.2.21.59.PM.mov
  2. added
    s/verifiedVerified / Reproducible Issue ready for Engineering Triage
    s/triagedIssue has been reviewed
    i/regressionThis issue described a confirmed regression on a currently supported version
    on Aug 4, 2026
  3. added this to the .NET 10 SR11 milestone on Aug 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-webviewpartner/syncfusionIssues / PR's with Syncfusion collaborationplatform/androids/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