fix: add casing for WCO edge (#31097)

* fix: add casing for WCO edge

* fix linting error

* apply fix for linting error
This commit is contained in:
Michaela Laurencin
2021-09-27 09:00:35 -07:00
committed by GitHub
parent 993ecb5bdd
commit 4c4d29eb73

View File

@@ -236,9 +236,10 @@ void WinFrameView::LayoutCaptionButtons() {
// 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() {