Dashboard Widget moveTo

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.

About this Entry

This page contains a single entry by bbrown published on June 7, 2008 4:50 AM.

It's Just to Put It Before the Citizenry was the previous entry in this blog.

Microsoft Distributed Cache Services née Velocity is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Feedback to