'Toggle the focused secondary pane between min and max size'

def _maximize_secondary(self):

    n = (len(self.clients) - 2)
    collapsed_size = (self.min_secondary_size * n)
    nidx = (self.focused - 1)
    maxed_size = (self.group.screen.dheight - collapsed_size)
    if (abs((self._get_absolute_size_from_relative(self.relative_sizes[nidx]) - maxed_size)) < self.change_size):
        self._shrink_secondary((self._get_absolute_size_from_relative(self.relative_sizes[nidx]) - self.min_secondary_size))
    else:
        self._grow_secondary(maxed_size)
