Skip to content

Commit

Permalink
Uplift of #27150 (squashed) to beta
Browse files Browse the repository at this point in the history
  • Loading branch information
brave-builds committed Jan 8, 2025
1 parent 0710df8 commit c39ef53
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions browser/ui/views/frame/brave_browser_view_layout.cc
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,13 @@ void BraveBrowserViewLayout::UpdateContentsContainerInsets(
// Control contents's margin with sidebar & vertical tab state.
gfx::Insets contents_margins = GetContentsMargins();

// Don't need to have additional contents margin for rounded corners
// in tab-initiated fullscreen. Web contents occupies whole screen.
if (IsFullscreenForTab()) {
contents_container_bounds.Inset(contents_margins);
return;
}

// In rounded corners mode, we need to include a little margin so we have
// somewhere to draw the shadow.
int contents_margin_for_rounded_corners =
Expand Down

0 comments on commit c39ef53

Please sign in to comment.