| Index: mash/wm/frame/non_client_frame_view_mash.cc
|
| diff --git a/mash/wm/frame/non_client_frame_view_mash.cc b/mash/wm/frame/non_client_frame_view_mash.cc
|
| index 320d7689f3a3b570b1ec950782885133196c95ea..d0fd849e82cc495820e2edbacd4a3f6c992ab745 100644
|
| --- a/mash/wm/frame/non_client_frame_view_mash.cc
|
| +++ b/mash/wm/frame/non_client_frame_view_mash.cc
|
| @@ -260,6 +260,12 @@ const char* NonClientFrameViewMash::GetClassName() const {
|
| }
|
|
|
| gfx::Size NonClientFrameViewMash::GetMinimumSize() const {
|
| + // If the client area is empty we assume the client is rendering everything
|
| + // and the window can be resized to anything.
|
| + // TODO(sky): we need a minimum-size property.
|
| + if (window_->client_area().IsEmpty())
|
| + return gfx::Size();
|
| +
|
| gfx::Size min_client_view_size(frame_->client_view()->GetMinimumSize());
|
| return gfx::Size(
|
| std::max(header_view_->GetMinimumWidth(), min_client_view_size.width()),
|
|
|