def _resize_right_rows(self, vis_index):
        self.read_section_sizes()

        previous_space = sum(self.section_sizes[vis_index:])
        new_space = self._target_size - sum(self.section_sizes[:vis_index])

        # If we are growing the sections
        if new_space > previous_space:
            allocated_space = new_space - previous_space
            for i, size in enumerate(self.section_sizes[vis_index:], vis_index):
                size += allocated_space * (size / previous_space)
                self.section_sizes[i] = size
                self.resizeSection(self.logicalIndex(i), size)
        # If we are shrinking the sections
        else:
            reclaimed_space = previous_space - new_space
            for i, size in enumerate(self.section_sizes[vis_index:], vis_index):
                size -= reclaimed_space * (
                        (self.MINIMUM_SIZE - size)/previous_space)
                self.section_sizes[i] = size
                self.resizeSection(self.logicalIndex(i), size)
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/packages/spreadsheet/spreadsheet_sheet.py/StandardWidgetHeaderView._resize_right_rows/swapped operands of `-`