Fix get_range_extents for label widget