From 1b8790aeb2d0616aba18edca74d5ecf820c2a0c0 Mon Sep 17 00:00:00 2001 From: mdpetuum <39562923+mdpetuum@users.noreply.github.com> Date: Thu, 7 Jun 2018 12:48:39 -0400 Subject: [PATCH] fix: tray icon bounds didn't allow negative macOS (#13162) --- atom/browser/ui/tray_icon_cocoa.mm | 4 ---- 1 file changed, 4 deletions(-) diff --git a/atom/browser/ui/tray_icon_cocoa.mm b/atom/browser/ui/tray_icon_cocoa.mm index 6d0919aaad..0487e07ea0 100644 --- a/atom/browser/ui/tray_icon_cocoa.mm +++ b/atom/browser/ui/tray_icon_cocoa.mm @@ -479,10 +479,6 @@ void TrayIconCocoa::SetContextMenu(AtomMenuModel* menu_model) { gfx::Rect TrayIconCocoa::GetBounds() { auto bounds = gfx::ScreenRectFromNSRect([status_item_view_ window].frame); - // Calling [window frame] immediately after the view gets created will have - // negative |y| sometimes. - if (bounds.y() < 0) - bounds.set_y(0); return bounds; }