def reposition(self):
        """Reposition panel relative to file manager."""
        self.rect.topright = self.dir_panel.rect.move(-15, 0).topleft

        self.bookmark_objs.rect.topleft = self.rect.move(1, 1).topleft

        for path_obj in self.bookmark_objs:
            path_obj.reposition_icon_and_text()
Reposition panel relative to file manager.
nodezator/fileman/bookmarkpanel/main.py