💄 Fix cpplint warning.
This commit is contained in:
parent
bef22e80c8
commit
0dc3e6ac7c
1 changed files with 4 additions and 4 deletions
|
@ -266,10 +266,10 @@ void NativeWindowGtk::SetContentSize(const gfx::Size& size) {
|
||||||
if (!has_frame_ || !has_ever_been_shown_) {
|
if (!has_frame_ || !has_ever_been_shown_) {
|
||||||
gtk_window_util::SetWindowSize(window_, size);
|
gtk_window_util::SetWindowSize(window_, size);
|
||||||
} else {
|
} else {
|
||||||
gfx::Size window_size = GetSize();
|
gfx::Size large = GetSize();
|
||||||
gfx::Size content_size = GetContentSize();
|
gfx::Size small = GetContentSize();
|
||||||
gfx::Size target(size.width() + window_size.width() - content_size.width(),
|
gfx::Size target(size.width() + large.width() - small.width(),
|
||||||
size.height() + window_size.height() - content_size.height());
|
size.height() + large.height() - small.height());
|
||||||
gtk_window_util::SetWindowSize(window_, target);
|
gtk_window_util::SetWindowSize(window_, target);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue