Skip to content

Commit

Permalink
fix: AgoraVideoView takes over the whole browser window
Browse files Browse the repository at this point in the history
  • Loading branch information
littleGnAl committed Apr 22, 2024
1 parent 6c4ecb9 commit 893b6c7
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ class _View {
..id = _getViewType(platformViewId)
..style.width = '100%'
..style.height = '100%' {
// Wait until the element is injected into the DOM,
// see https://github.com/flutter/flutter/issues/143922#issuecomment-1960133128
final observer = html.IntersectionObserver((entries, observer) {
if (_element.isConnected == true) {
observer.unobserve(_element);
Expand Down

0 comments on commit 893b6c7

Please sign in to comment.