src/wtf/app/loader.js
function finishLoad() {
    // Pick a title, unless one was specified.
    var title = opt_title || this.generateTitleFromEntries_(entries);
    this.mainDisplay_.setTitle(title);

    // Show the document.
    var documentView = this.mainDisplay_.openDocument(doc);
    goog.asserts.assert(documentView);

    // Zoom to fit.
    // TODO(benvanik): remove setTimeout when zoomToFit is based on view.
    wtf.timing.setTimeout(50, function() {
      documentView.zoomToFit();
    }, this);
  }
function finishLoad() {
    // Pick a title, unless one was specified.
    var title = opt_title || this.generateTitleFromEntries_(entries);
    this.mainDisplay_.setTitle(title);

    // Show the document.
    var documentView = this.mainDisplay_.openDocument(doc);
    goog.asserts.assert(documentView);

    // Zoom to fit.
    // TODO(benvanik): remove setTimeout when zoomToFit is based on view.
    wtf.timing.setTimeout(50, function() {
      documentView.zoomToFit();
    }, this);
  }
function finishLoad ( ) { // Pick a title, unless one was specified. var title = opt_title || this . generateTitleFromEntries_ ( entries ) ; this . mainDisplay_ . setTitle ( title ) ; // Show the document. var documentView = this . mainDisplay_ . openDocument ( doc ) ; goog . asserts . assert ( documentView ) ; // Zoom to fit. // TODO(benvanik): remove setTimeout when zoomToFit is based on view. wtf . timing . setTimeout ( 50 , function ( ) { documentView . zoomToFit ( ) ; } , this ) ; }
This is called after the dialog has closed to give it a chance to animate out.
This is called after the dialog has closed to give it a chance to animate out .