fix: fire show event when BrowserWindow shown via maximize() (#32979)
This commit is contained in:
parent
86e746c36b
commit
e589e9b259
3 changed files with 31 additions and 5 deletions
|
@ -178,12 +178,13 @@ HHOOK NativeWindowViews::mouse_hook_ = NULL;
|
|||
void NativeWindowViews::Maximize() {
|
||||
// Only use Maximize() when window is NOT transparent style
|
||||
if (!transparent()) {
|
||||
if (IsVisible())
|
||||
if (IsVisible()) {
|
||||
widget()->Maximize();
|
||||
else
|
||||
} else {
|
||||
widget()->native_widget_private()->Show(ui::SHOW_STATE_MAXIMIZED,
|
||||
gfx::Rect());
|
||||
return;
|
||||
NotifyWindowShow();
|
||||
}
|
||||
} else {
|
||||
restore_bounds_ = GetBounds();
|
||||
auto display = display::Screen::GetScreen()->GetDisplayNearestWindow(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue