def METHOD_NAME(self, event):
    super().METHOD_NAME(event)
    rect = self.contentsRect()
    self._line_number_area.setGeometry(QRect(rect.left(), rect.top(), self.line_number_area_width(), rect.height()))