aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/DocumentDecorations.tsx
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2020-02-20 23:45:59 -0500
committerBob Zeleznik <zzzman@gmail.com>2020-02-20 23:45:59 -0500
commit72892f0811f03dae096ebea2dcac24b56d661b07 (patch)
tree1f7bc0f892363dc90edea2441a5fbb8e36778b74 /src/client/views/DocumentDecorations.tsx
parent6e5abc3052f4df09b156deccdfe6a7b0b62f492b (diff)
more link editor fixes. fixed border rounding.
Diffstat (limited to 'src/client/views/DocumentDecorations.tsx')
-rw-r--r--src/client/views/DocumentDecorations.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx
index 61c199c1d..dcd8dd113 100644
--- a/src/client/views/DocumentDecorations.tsx
+++ b/src/client/views/DocumentDecorations.tsx
@@ -256,7 +256,7 @@ export class DocumentDecorations extends React.Component<{}, { value: string }>
let dist = Math.sqrt((e.clientX - down[0]) * (e.clientX - down[0]) + (e.clientY - down[1]) * (e.clientY - down[1]));
dist = dist < 3 ? 0 : dist;
SelectionManager.SelectedDocuments().map(dv => dv.props.Document).map(doc => doc.layout instanceof Doc ? doc.layout : doc.isTemplateForField ? doc : Doc.GetProto(doc)).
- map(d => d.borderRounding = `${Math.min(100, dist)}%`);
+ map(d => d.borderRounding = `${Math.max(0, dist)}px`);
return false;
}