Use empty origin when only adjusting size
This commit is contained in:
parent
52199a008d
commit
7ae9c7616d
1 changed files with 1 additions and 3 deletions
|
@ -219,9 +219,7 @@ gfx::Point NativeWindow::GetPosition() {
|
|||
}
|
||||
|
||||
void NativeWindow::SetContentSize(const gfx::Size& size, bool animate) {
|
||||
gfx::Rect bounds = GetContentBounds();
|
||||
bounds.set_size(size);
|
||||
SetSize(ContentBoundsToWindowBounds(bounds).size(), animate);
|
||||
SetSize(ContentBoundsToWindowBounds(gfx::Rect(size)).size(), animate);
|
||||
}
|
||||
|
||||
gfx::Size NativeWindow::GetContentSize() {
|
||||
|
|
Loading…
Reference in a new issue