|
@@ -403,8 +403,10 @@ gfx::Rect TopLevelWindow::GetContentBounds() {
|
|
|
|
|
|
void TopLevelWindow::SetSize(int width, int height, mate::Arguments* args) {
|
|
|
bool animate = false;
|
|
|
+ gfx::Size size = window_->GetMinimumSize();
|
|
|
+ size.SetToMax(gfx::Size(width, height));
|
|
|
args->GetNext(&animate);
|
|
|
- window_->SetSize(gfx::Size(width, height), animate);
|
|
|
+ window_->SetSize(size, animate);
|
|
|
}
|
|
|
|
|
|
std::vector<int> TopLevelWindow::GetSize() {
|