Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Android] - Fixed Flickering Issue When Toggling WebView Visibility #24753

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

NirmalKumarYuvaraj
Copy link
Contributor

@NirmalKumarYuvaraj NirmalKumarYuvaraj commented Sep 13, 2024

Description

  • In Android when changing the visibility of a WebView within a grid, Getting an issue where the elements underneath the grid start flickering.

Root Cause

  • The flickering happened due to incorrect height handling. The use of MatchParent caused an infinite height, making the layout try to fill the entire parent height, which led to instability.

Resolution

  • The infinite value was managed to prevent the layout from taking more space than necessary, ensuring stable behavior.

Before Changes

Before-Fix.mp4

After Changes

After-Fix.mp4

Issue Fixed

@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Sep 13, 2024
Copy link
Contributor

Hey there @NirmalKumarYuvaraj! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@NirmalKumarYuvaraj NirmalKumarYuvaraj changed the title Fixed Flickering Issue When Toggling WebView Visibility on Android [Android] - Fixed Flickering Issue When Toggling WebView Visibility Sep 16, 2024
@tj-devel709 tj-devel709 added area-controls-webview WebView area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter labels Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-webview WebView area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter community ✨ Community Contribution
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants