fix: add casing for WCO edge (#30938)
This commit is contained in:
parent
c5b517d89f
commit
b491a4c82f
1 changed files with 3 additions and 2 deletions
|
@ -235,9 +235,10 @@ void WinFrameView::LayoutCaptionButtons() {
|
||||||
// portion to return the correct hit test and be manually resized properly.
|
// portion to return the correct hit test and be manually resized properly.
|
||||||
// Alternatives can be explored, but the differences in view structures
|
// Alternatives can be explored, but the differences in view structures
|
||||||
// between Electron and Chromium may result in this as the best option.
|
// 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(),
|
caption_button_container_->SetBounds(width() - preferred_size.width(),
|
||||||
WindowTopY(), preferred_size.width() - 1,
|
WindowTopY(), variable_width, height);
|
||||||
height);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void WinFrameView::LayoutWindowControlsOverlay() {
|
void WinFrameView::LayoutWindowControlsOverlay() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue