fix: add casing for WCO edge (#30994)

Co-authored-by: mlaurencin <mlaurencin@electronjs.org>
This commit is contained in:
trop[bot]
2021-09-17 16:48:00 +09:00
committed by GitHub
parent 9838ace413
commit 1b64468510

View File

@@ -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() {