Revived fix/set screen bounds

Revived version of the now-dead PR #222.  This PR restricts itself to the `abs` fix.  Issue #223 remains an issue (both before and after this PR).