mirror of
https://github.com/electron/electron.git
synced 2026-01-27 00:09:09 -05:00
Set bounds size to content size
This commit is contained in:
@@ -545,7 +545,9 @@ gfx::Rect NativeWindowViews::GetBounds() {
|
||||
}
|
||||
|
||||
gfx::Rect NativeWindowViews::GetContentBounds() {
|
||||
return window_->GetClientAreaBoundsInScreen();
|
||||
gfx::Rect bounds = window_->GetClientAreaBoundsInScreen();
|
||||
bounds.set_size(GetContentSize());
|
||||
return bounds;
|
||||
}
|
||||
|
||||
gfx::Size NativeWindowViews::GetContentSize() {
|
||||
|
||||
Reference in New Issue
Block a user