fix NewDefinitionWindow maximize problem on mac