From 709670be8ead09e2f77851a4a4ccbeef33f8f1d7 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Fri, 25 Jul 2014 15:05:18 +0800 Subject: [PATCH] win: Make menu bar height 20. On Windows applications used to have lower menu bars. --- atom/browser/native_window_views.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/atom/browser/native_window_views.cc b/atom/browser/native_window_views.cc index 448fd28a2a..df013e33c5 100644 --- a/atom/browser/native_window_views.cc +++ b/atom/browser/native_window_views.cc @@ -52,7 +52,11 @@ namespace atom { namespace { // The menu bar height in pixels. +#if defined(OS_WIN) +const int kMenuBarHeight = 20; +#else const int kMenuBarHeight = 25; +#endif class NativeWindowClientView : public views::ClientView { public: