[SSE] For Bug 53791
This commit is contained in:
parent
1ff958f7be
commit
37d3380967
|
@ -280,7 +280,7 @@ SSE.ApplicationController = new(function(){
|
|||
if (api){
|
||||
var f = Math.floor(api.asc_getZoom() * 10)/10;
|
||||
f += .1;
|
||||
f > 0 && !(f > 2.) && api.asc_setZoom(f);
|
||||
f > 0 && !(f > 5.) && api.asc_setZoom(f);
|
||||
}
|
||||
});
|
||||
$('#id-btn-zoom-out').on('click', function () {
|
||||
|
|
|
@ -1725,7 +1725,7 @@ define([
|
|||
} else if (delta > 0) {
|
||||
factor = Math.floor(factor * 10)/10;
|
||||
factor += 0.1;
|
||||
if (factor > 0 && !(factor > 2.)) {
|
||||
if (factor > 0 && !(factor > 5.)) {
|
||||
this.api.asc_setZoom(factor);
|
||||
}
|
||||
}
|
||||
|
@ -1744,7 +1744,7 @@ define([
|
|||
if (!this.api.isCellEdited) {
|
||||
var factor = Math.floor(this.api.asc_getZoom() * 10)/10;
|
||||
factor += .1;
|
||||
if (factor > 0 && !(factor > 2.)) {
|
||||
if (factor > 0 && !(factor > 5.)) {
|
||||
this.api.asc_setZoom(factor);
|
||||
}
|
||||
|
||||
|
|
|
@ -121,7 +121,7 @@ define([
|
|||
case 'up':
|
||||
var f = Math.floor(this.api.asc_getZoom() * 10)/10;
|
||||
f += .1;
|
||||
!(f > 4.) && this.api.asc_setZoom(f);
|
||||
!(f > 5.) && this.api.asc_setZoom(f);
|
||||
break;
|
||||
case 'down':
|
||||
f = Math.ceil(this.api.asc_getZoom() * 10)/10;
|
||||
|
|
|
@ -317,7 +317,7 @@ define([
|
|||
if ( btn == 'up' ) {
|
||||
var _f = Math.floor(this.api.asc_getZoom() * 10)/10;
|
||||
_f += .1;
|
||||
if (_f > 0 && !(_f > 2.))
|
||||
if (_f > 0 && !(_f > 5.))
|
||||
this.api.asc_setZoom(_f);
|
||||
} else {
|
||||
_f = Math.ceil(this.api.asc_getZoom() * 10)/10;
|
||||
|
|
Loading…
Reference in a new issue