Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(491)

Unified Diff: views/widget/native_widget_win.cc

Issue 7248018: Fix the issue that a panel window cannot be shrink to very small (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698