Merge pull request #12137 from electron/deprecate-getMenuBatHeight-2.0.x

Deprecate screen.getMenuBarHeight (2.0.x)
This commit is contained in:
shelley vohr
2018-03-06 07:38:53 -08:00
committed by GitHub
3 changed files with 10 additions and 13 deletions

View File

@@ -9,6 +9,7 @@ namespace atom {
namespace api {
//TODO(codebytere): deprecated; remove in 3.0
int Screen::getMenuBarHeight() {
return [[NSApp mainMenu] menuBarHeight];
}