Skip to content

Commit d283cbe

Browse files
andrewkfiedlerrzwiefel
authored andcommitted
DDF-2644 Add lower bound to radius for circle drawing
1 parent 865d5b0 commit d283cbe

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

catalog/ui/catalog-ui-search/src/main/webapp/component/location-old/location-old.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105

106106
<div class="input-group input-group-sm for-radius">
107107
<span class="input-group-addon">Radius&nbsp;</span>
108-
<input class="form-control" id="radiusValue" type="number" min="0" step="any" placeholder="" value="{{radius}}"/>
108+
<input class="form-control" id="radiusValue" type="number" min="0.000001" step="any" placeholder="" value="{{radius}}"/>
109109
<span class="input-group-btn">
110110
<select id="radiusUnits" name="radiusUnits" class="input-group-addon">
111111
<option value="meters" selected="selected">meters</option>

catalog/ui/catalog-ui-search/src/main/webapp/component/location-old/location-old.view.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,8 @@ define([
362362

363363
return _.extend(modelJSON, {
364364
type: type,
365-
lineWidth: Math.max(modelJSON.lineWidth, 0.000001)
365+
lineWidth: Math.max(modelJSON.lineWidth, 0.000001),
366+
radius: Math.max(modelJSON.radius, 0.000001)
366367
});
367368
},
368369
onDestroy: function () {

0 commit comments

Comments
 (0)