From d5c280dc4d4d3dd4f93b5d9d1501dffd1f536aa3 Mon Sep 17 00:00:00 2001 From: Shane Kilkelly Date: Tue, 22 Mar 2016 14:38:48 +0000 Subject: [PATCH] Show the pdf if it was already loaded. This ensures the pdf will be visible if the user switches to fullscreen-view. --- .../public/coffee/ide/pdf/controllers/PdfController.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/web/public/coffee/ide/pdf/controllers/PdfController.coffee b/services/web/public/coffee/ide/pdf/controllers/PdfController.coffee index 81df8e7053..fe37da4937 100644 --- a/services/web/public/coffee/ide/pdf/controllers/PdfController.coffee +++ b/services/web/public/coffee/ide/pdf/controllers/PdfController.coffee @@ -6,7 +6,9 @@ define [ App.controller "PdfController", ($scope, $http, ide, $modal, synctex, event_tracking, localStorage) -> autoCompile = true - $scope.pdf.view = 'uncompiled' # uncompiled | pdf | errors + + # pdf.view = uncompiled | pdf | errors + $scope.pdf.view = if $scope?.pdf?.url then 'pdf' else 'uncompiled' $scope.shouldShowLogs = false $scope.$on "project:joined", () ->