зеркало из https://github.com/electron/electron.git
fix: add casing for WCO edge (#30938)
This commit is contained in:
Родитель
c5b517d89f
Коммит
b491a4c82f
|
@ -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() {
|
||||
|
|
Загрузка…
Ссылка в новой задаче