Skip to content

Instantly share code, notes, and snippets.

@jswanner
Created July 20, 2012 14:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jswanner/3151158 to your computer and use it in GitHub Desktop.
Save jswanner/3151158 to your computer and use it in GitHub Desktop.
Prevent OS X dashboard weather widget from moving around.
--- /Library/Widgets/Weather.wdgt/Weather.js 2012-07-20 10:53:24.000000000 -0400
+++ /Library/Widgets/Weather.wdgt/Weather.js 2012-07-20 10:53:40.000000000 -0400
@@ -406,7 +406,7 @@
if (entry != null)
{
iconData.push(entry);
- maxOffset = entry.voffset > maxOffset ? entry.voffset : maxOffset;
+ // maxOffset = entry.voffset > maxOffset ? entry.voffset : maxOffset;
if (entry.hoffset < 0)
{
@nklatt
Copy link

nklatt commented Apr 10, 2014

Didn't work for me - killall Dock still sends 'em flying. It's insane this issue hasn't been fixed yet, sounds like it's been happening for years. Maybe I'll poke around in this file myself, though, now that I know about it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment