Refactor assign_height, bubble_width, assign_width for block, table-*