Index: views/widget/native_widget_win.cc |
=================================================================== |
--- views/widget/native_widget_win.cc (revision 90225) |
+++ views/widget/native_widget_win.cc (working copy) |
@@ -2181,6 +2181,14 @@ |
// Set type-dependent style attributes. |
switch (params.type) { |
case Widget::InitParams::TYPE_WINDOW: { |
+ // Do not pass other styles if custom frame is used. This is because |
+ // oherwise the height of the window cannot be shrinked beyond certain |
+ // point. |
+ if (GetWidget()->frame_type() == Widget::FRAME_TYPE_FORCE_CUSTOM) { |
Ben Goodger (Google)
2011/06/23 20:48:55
This is incorrect. Custom frame windows need to ha
|
+ style |= WS_POPUP; |
+ break; |
+ } |
+ |
style |= WS_SYSMENU | WS_CAPTION; |
bool can_resize = GetWidget()->widget_delegate()->CanResize(); |
bool can_maximize = GetWidget()->widget_delegate()->CanMaximize(); |