Repository navigation
Description
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
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
- Create a custom WebView with automatic height adjustment.
- Load an HTML page containing an editable content container (div).
- Use a JavaScript MutationObserver to monitor content changes.
- Calculate the HTML content height whenever the content changes.
- Return the calculated height to the MAUI layer and update the WebView height request.
- Place the custom WebView inside an SfAssistView response template.
- Populate the AssistView with multiple chat messages [5 chats] containing WebView content of varying heights.
- Launch the application on Android.
- Scroll through the chat messages repeatedly, both upward and downward.
- Attached the issue reproducible sample below.
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
Activity
HarishKumarSF4517 commentedon Aug 3, 2026
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