зеркало из https://github.com/electron/electron.git
fix: tray icon bounds didn't allow negative macOS (#13162)
This commit is contained in:
Родитель
828545c128
Коммит
1b8790aeb2
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче