def flip(self, n_windows):
        """
        Flip the orientation of the page.
        """

        assert n_windows >= 0
        self.page_index += (self.step * n_windows)
        self.cursor_index = n_windows
        self.inverted = not self.inverted
        self.top_item_height = None
dataset/ETHPy150Open michael-lazar/rtv/rtv/objects.py/Navigator.flip/original