fix: tray icon bounds didn't allow negative macOS (#13162)
This commit is contained in:
parent
828545c128
commit
1b8790aeb2
1 changed files with 0 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue