Index: ui/views/win/hwnd_message_handler.cc |
diff --git a/ui/views/win/hwnd_message_handler.cc b/ui/views/win/hwnd_message_handler.cc |
index d726ea930d98d95feceb2da247503f41c5fabb27..9c3912afbb4230838c74cde09124aaff46e7983d 100644 |
--- a/ui/views/win/hwnd_message_handler.cc |
+++ b/ui/views/win/hwnd_message_handler.cc |
@@ -1397,6 +1397,9 @@ void HWNDMessageHandler::OnGetMinMaxInfo(MINMAXINFO* minmax_info) { |
gfx::Size min_window_size; |
gfx::Size max_window_size; |
delegate_->GetMinMaxSize(&min_window_size, &max_window_size); |
+ min_window_size = gfx::win::DIPToScreenSize(min_window_size); |
+ max_window_size = gfx::win::DIPToScreenSize(max_window_size); |
+ |
// Add the native frame border size to the minimum and maximum size if the |
// view reports its size as the client size. |