Commit e72536c1 authored by pkotwicz's avatar pkotwicz Committed by Commit bot

Prevent frameless packaged apps from being resized to 0x0 on CrOS

BUG=408049
TEST=Manual, see bug

Review URL: https://codereview.chromium.org/586323002

Cr-Commit-Position: refs/heads/master@{#296133}
parent fa93145c
...@@ -323,8 +323,10 @@ const char* AppWindowFrameView::GetClassName() const { return kViewClassName; } ...@@ -323,8 +323,10 @@ const char* AppWindowFrameView::GetClassName() const { return kViewClassName; }
gfx::Size AppWindowFrameView::GetMinimumSize() const { gfx::Size AppWindowFrameView::GetMinimumSize() const {
gfx::Size min_size = widget_->client_view()->GetMinimumSize(); gfx::Size min_size = widget_->client_view()->GetMinimumSize();
if (!draw_frame_) if (!draw_frame_) {
min_size.SetToMax(gfx::Size(1, 1));
return min_size; return min_size;
}
// Ensure we can display the top of the caption area. // Ensure we can display the top of the caption area.
gfx::Rect client_bounds = GetBoundsForClientView(); gfx::Rect client_bounds = GetBoundsForClientView();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment