Skip to content

Commit

Permalink
fix: add casing for WCO edge (#30938)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlaurencin committed Sep 16, 2021
1 parent c5b517d commit b491a4c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions shell/browser/ui/views/win_frame_view.cc
Expand Up @@ -235,9 +235,10 @@ void WinFrameView::LayoutCaptionButtons() {
// portion to return the correct hit test and be manually resized properly.
// Alternatives can be explored, but the differences in view structures
// between Electron and Chromium may result in this as the best option.
int variable_width =
IsMaximized() ? preferred_size.width() : preferred_size.width() - 1;
caption_button_container_->SetBounds(width() - preferred_size.width(),
WindowTopY(), preferred_size.width() - 1,
height);
WindowTopY(), variable_width, height);
}

void WinFrameView::LayoutWindowControlsOverlay() {
Expand Down

0 comments on commit b491a4c

Please sign in to comment.