Prevent off-screen outlines (bug 876726)