Slight improvement to our Viewer widget.

The previous commit was fine for Linux and OS X, but not Windows!