Bill Brown bio photo

Bill Brown

A complicated man.

Twitter Github

If you find yourself whipping up a widget in Dashcode and circumstances have moved that widget (during the running and testing) off the screen so that you've essentially lost it, you'll try everything to get it back. window.moveTo doesn't work. There is no widget.moveTo. And manually setting window.screenTop to 0 has no effect. So you google and google and google, but there's seemingly no query that you can construct to get an answer. I guess you're never going to see your little widget again.

But don't despair, friend! Just use the undocumented method widget.resizeAndMoveTo(x, y, width, height) in your show method and you'll have your widget right where you want it, safe and sound.