restorePositionAndSize () {
    // restore window size and position
    let size = this.nativeWin.getSize();
    let winPosX, winPosY, winSizeX = size[0], winSizeY = size[1];

    let profile = Profile.load('layout.windows', 'local');
    if ( profile.windows && profile.windows[this.name] ) {
      let winInfo = profile.windows[this.name];
      winPosX = winInfo.x;
      winPosY = winInfo.y;
      winSizeX = winInfo.width;
      winSizeY = winInfo.height;
    }
    this.adjust( winPosX, winPosY, winSizeX, winSizeY );
  }
/**
   * @method restorePositionAndSize
   *
   * Restore window's position and size from the `local` profile `layout.windows.json`
   */
@method restorePositionAndSize
Restore window's position and size from the `local` profile `layout.windows.json`
@method restorePositionAndSize Restore window ' s position and size from the ` local ` profile ` layout . windows . json `
restorePositionAndSize () {
    let size = this.nativeWin.getSize();
    let winPosX, winPosY, winSizeX = size[0], winSizeY = size[1];
    let profile = Profile.load('layout.windows', 'local');
    if ( profile.windows && profile.windows[this.name] ) {
      let winInfo = profile.windows[this.name];
      winPosX = winInfo.x;
      winPosY = winInfo.y;
      winSizeX = winInfo.width;
      winSizeY = winInfo.height;
    }
    this.adjust( winPosX, winPosY, winSizeX, winSizeY );
  }
restorePositionAndSize ( ) { let size = this . nativeWin . getSize ( ) ; let winPosX , winPosY , winSizeX = size [ 0 ] , winSizeY = size [ 1 ] ; let profile = Profile . load ( 'layout.windows' , 'local' ) ; if ( profile . windows && profile . windows [ this . name ] ) { let winInfo = profile . windows [ this . name ] ; winPosX = winInfo . x ; winPosY = winInfo . y ; winSizeX = winInfo . width ; winSizeY = winInfo . height ; } this . adjust ( winPosX , winPosY , winSizeX , winSizeY ) ; }
@method restorePositionAndSize
 Restore window's position and size from the `local` profile `layout.windows.json`
@method restorePositionAndSize Restore window ' s position and size from the ` local ` profile ` layout . windows . json `
// restore window size and position