def showEvent(self, event):
        super(CodeEdit, self).showEvent(event)
        self.panels.refresh()
Overrides showEvent to update the viewport margins
dataset/ETHPy150Open OpenCobolIDE/OpenCobolIDE/open_cobol_ide/extlibs/pyqode/core/api/code_edit.py/CodeEdit.showEvent