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.

Issue Fixed

Fixes #24113

Before Changes

Before-Fix.mp4

After Changes

After-Fix.mp4

@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Sep 13, 2024
@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
@jsuarezruiz
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@jsuarezruiz
Copy link
Contributor

/rebase

@jsuarezruiz
Copy link
Contributor

/rebase

@jsuarezruiz
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

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.

Flickering Issue When Toggling WebView Visibility in Grid Layout on Android
3 participants