aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/FormattedTextBox.tsx
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2019-04-24 23:17:44 -0400
committerBob Zeleznik <zzzman@gmail.com>2019-04-24 23:17:44 -0400
commit575d8b339cdf74cdcb8d46dcd6e627aec2dda636 (patch)
tree8d8c89ba997c6a12dce7dd8fd6fa02122f46e9c9 /src/client/views/nodes/FormattedTextBox.tsx
parent20becbb5ca40350ed85e01f73f29621ba7783bb9 (diff)
added borderRadius and fixed a bunch of broken props along the way.
Diffstat (limited to 'src/client/views/nodes/FormattedTextBox.tsx')
-rw-r--r--src/client/views/nodes/FormattedTextBox.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client/views/nodes/FormattedTextBox.tsx b/src/client/views/nodes/FormattedTextBox.tsx
index 9cd58c73a..4b2fdbaff 100644
--- a/src/client/views/nodes/FormattedTextBox.tsx
+++ b/src/client/views/nodes/FormattedTextBox.tsx
@@ -273,7 +273,10 @@ export class FormattedTextBox extends React.Component<(FieldViewProps & Formatte
let color = this.props.Document.GetText(KeyStore.BackgroundColor, "");
return (
<div className={`formattedTextBox-cont-${style}`}
- style={{ background: color }}
+ style={{
+ borderRadius: `${this.props.borderRounding()}px`,
+ background: color,
+ }}
onKeyDown={this.onKeyPress}
onKeyPress={this.onKeyPress}
onFocus={this.onFocused}