Minor tweaks to detecting which edge the mouse is close to on a layoutView.