mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
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:
committed by
GitHub
parent
993ecb5bdd
commit
4c4d29eb73
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user