HOTFIX
* fixes bug where float numbers could not be used as input for e.g. buffer radius * supports up to two digits
This commit is contained in:
parent
0fb40a5568
commit
e2cbe7eb73
@ -196,6 +196,7 @@ netgis.Toolbar.prototype.createToolbarInput = function( title, value, callback )
|
|||||||
var input = document.createElement( "input" );
|
var input = document.createElement( "input" );
|
||||||
input.setAttribute( "type", "number" );
|
input.setAttribute( "type", "number" );
|
||||||
input.setAttribute( "min", 0 );
|
input.setAttribute( "min", 0 );
|
||||||
|
input.setAttribute( "step", 0.01 );
|
||||||
input.value = value;
|
input.value = value;
|
||||||
input.addEventListener( "change", callback );
|
input.addEventListener( "change", callback );
|
||||||
input.addEventListener( "keyup", callback );
|
input.addEventListener( "keyup", callback );
|
||||||
|
Loading…
Reference in New Issue
Block a user