Merge pull request #3854 from Snuffleupagus/round-viewBookmark-scale-value

Round the scale value displayed by the viewBookmark button to two decimal places
This commit is contained in:
Tim van der Meij 2013-11-02 13:35:02 -07:00
commit 867c667690

View File

@ -1745,8 +1745,8 @@ function updateViewarea() {
var currentScale = PDFView.currentScale;
var currentScaleValue = PDFView.currentScaleValue;
var normalizedScaleValue = currentScaleValue == currentScale ?
currentScale * 100 : currentScaleValue;
var normalizedScaleValue = currentScaleValue === currentScale ?
Math.round(currentScale * 10000) / 100 : currentScaleValue;
var pageNumber = firstPage.id;
var pdfOpenParams = '#page=' + pageNumber;