core-4639 refactor code for fixing problem in chrome when maximizing
AppIntegration window