def reposition(self):
        """Reposition panel relative to file manager."""

        self.rect.topleft = self.fm.rect.move(305, 100).topleft

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

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