check that visible.top is less than visible.bottom