fix: getNormalBounds()
for transparent windows on Windows (#38218)
This commit is contained in:
parent
ad07712561
commit
32d8f84cad
2 changed files with 21 additions and 0 deletions
|
@ -787,6 +787,10 @@ gfx::Size NativeWindowViews::GetContentSize() {
|
|||
}
|
||||
|
||||
gfx::Rect NativeWindowViews::GetNormalBounds() {
|
||||
#if BUILDFLAG(IS_WIN)
|
||||
if (IsMaximized() && transparent())
|
||||
return restore_bounds_;
|
||||
#endif
|
||||
return widget()->GetRestoredBounds();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue