Move fitToDesktop function to Ext.Window
Bug fix for fitToDesktop function