]> khamidou — GitHub mirrors - electron.git/commit
Fix sizing of Mac OS X tray icon after image change
authorBen Gotow <bengotow@gmail.com>
Tue, 17 Nov 2015 21:43:55 +0000 (13:43 -0800)
committerBen Gotow <bengotow@gmail.com>
Tue, 17 Nov 2015 21:43:55 +0000 (13:43 -0800)
commit9c69416e322ca62930956030540a3cedf582a006
treea7e1e384a022f90b32e11b9f637cd3ac66fc6098
parent312a79165be96dcde56e6f7d270f0ff7d4c65a76
Fix sizing of Mac OS X tray icon after image change

- Consolidate logic that applies view dimensions into a function
- Use `NSVariableStatusItemLength` instead of trying to sync status item width
- Use modern Obj-C syntax `@[], @{}` in a few places
- Recompute view bounds after updating image in `setImage:`
atom/browser/ui/tray_icon_cocoa.mm
docs/api/tray.md