Browse Source

fix: tray icon bounds didn't allow negative macOS (#13162)

mdpetuum 6 years ago
parent
commit
1b8790aeb2
1 changed files with 0 additions and 4 deletions
  1. 0 4
      atom/browser/ui/tray_icon_cocoa.mm

+ 0 - 4
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;
 }