Handle ranges with small lengths but large text lengths

Change range content to overflow nicely if the range width is smaller than the width of the text. This prevents range items with longer text lines from being completely hidden.

Also update the stacking collision check to handle this case so that the overflowed text is not hidden by another item.

If you want this against develop instead of master let me know and I'll resubmit.