Fix #3314, Avoid infinite selection loop by checking minimum size
Fix #3314, Avoid infinite selection loop by checking minimum size

Source code files on dxr.mozilla.org are rendered as floats inside a
non-clearfixed parent element, which has a calculated height of 0. This
condition isn't handled in the current loop logic, leading to an infinite
while loop that locks up the UI.

mozilla-services/pageshot,mozilla-services/screenshots,mozilla-services/screenshots,mozilla-services/pageshot,mozilla-services/pageshot,mozilla-services/pageshot,mozilla-services/screenshots,mozilla-services/screenshots