Re #50, also validate right and bottom edges before highlighting a frame.

Re #50, also validate right and bottom edges before highlighting a frame.