'Refreshes the editor panels (resize and update margins).'

def refresh(self):

    debug_print('refresh_panels')
    self.resize()
    self._update(self.editor.contentsRect(), 0, force_update_margins=True)
