aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/LabelBox.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2025-05-05 14:05:32 -0400
committerbobzel <zzzman@gmail.com>2025-05-05 14:05:32 -0400
commit19adcca1a89405a47da57fee64fe5fde4720c16a (patch)
treecb0ac275ce40dc99487b9594edc8de2cc55ca650 /src/client/views/nodes/LabelBox.tsx
parentd4659e2bd3ddb947683948083232c26fb1227f39 (diff)
got rid of dash _xPadding/_yPadding in favor of just using _xMargin/_yMargin. cleaned up linearView field names
Diffstat (limited to 'src/client/views/nodes/LabelBox.tsx')
-rw-r--r--src/client/views/nodes/LabelBox.tsx12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/client/views/nodes/LabelBox.tsx b/src/client/views/nodes/LabelBox.tsx
index b08ed84b7..f901c32fc 100644
--- a/src/client/views/nodes/LabelBox.tsx
+++ b/src/client/views/nodes/LabelBox.tsx
@@ -181,10 +181,10 @@ export class LabelBox extends ViewBoxBaseComponent<FieldViewProps>() {
fontFamily: StrCast(this.layoutDoc._text_fontFamily, StrCast(Doc.UserDoc().fontFamily)) || 'inherit',
letterSpacing: StrCast(this.layoutDoc.letterSpacing),
textTransform: StrCast(this.layoutDoc[this.fieldKey + '_transform']) as Property.TextTransform,
- paddingLeft: NumCast(this.layoutDoc._xPadding),
- paddingRight: NumCast(this.layoutDoc._xPadding),
- paddingTop: NumCast(this.layoutDoc._yPadding),
- paddingBottom: NumCast(this.layoutDoc._yPadding),
+ paddingLeft: NumCast(this.layoutDoc._xMargin),
+ paddingRight: NumCast(this.layoutDoc._xMargin),
+ paddingTop: NumCast(this.layoutDoc._yMargin),
+ paddingBottom: NumCast(this.layoutDoc._yMargin),
width: this._props.PanelWidth(),
height: this._props.PanelHeight(),
whiteSpace: boxParams.multiLine ? 'pre-wrap' : 'pre',
@@ -192,8 +192,8 @@ export class LabelBox extends ViewBoxBaseComponent<FieldViewProps>() {
<div
key={this._forceRerender}
style={{
- width: this._props.PanelWidth() - 2 * NumCast(this.layoutDoc._xPadding),
- height: this._props.PanelHeight() - 2 * NumCast(this.layoutDoc._yPadding),
+ width: this._props.PanelWidth() - 2 * NumCast(this.layoutDoc._xMargin),
+ height: this._props.PanelHeight() - 2 * NumCast(this.layoutDoc._yMargin),
outline: 'unset !important',
}}
onKeyDown={e => {