Add full screen feature in cortex ui --> scripts section. This will help user to edit or view script properly in full mode.