Fixed tooltip icons not being drawn in the correct position when tooltip was close to edge of screen.