Round the scale value displayed by the viewBookmark button to two decimal places

This commit is contained in:
Jonas Jenwald 2013-10-28 12:34:35 +01:00
parent 19485c34c8
commit 4ee2c96503

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;