You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: samples/ReactorGallery/ControlPages/DesignGuidance/SpacingPage.cs
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -75,7 +75,7 @@ static Element SpacingScaleSection()
75
75
staticElementMarginVsPaddingSection()=>
76
76
SampleCard("Margin vs Padding",
77
77
VStack(16,
78
-
TextBlock("Margin adds space outside an element; Padding adds space inside. In Reactor, .Padding() only works on Border and Control elements (Button, TextField, etc.). Layout panels like VStack and HStack only support .Margin() — wrap content in a Border if you need inner padding on a stack.")
78
+
TextBlock("Margin adds space outside an element; Padding adds space inside. In Reactor, .Padding() only works on Border and Control elements (Button, TextBox, etc.). Layout panels like VStack and HStack only support .Margin() — wrap content in a Border if you need inner padding on a stack.")
79
79
.Foreground(Theme.SecondaryText)
80
80
.FontSize(13)
81
81
.Set(tb =>tb.TextWrapping=TextWrapping.Wrap)
@@ -140,7 +140,7 @@ static Element MarginVsPaddingSection() =>
140
140
VStack(2,
141
141
CompatRow("Border",true,true),
142
142
CompatRow("Button",true,true),
143
-
CompatRow("TextField",true,true),
143
+
CompatRow("TextBox",true,true),
144
144
CompatRow("Text",true,false),
145
145
CompatRow("VStack",true,false),
146
146
CompatRow("HStack",true,false),
@@ -153,7 +153,7 @@ static Element MarginVsPaddingSection() =>
153
153
VStack(children).Margin(16)
154
154
Border(child).Margin(12)
155
155
156
-
// Padding — only on Border and Control (Button, TextField, etc.)
156
+
// Padding — only on Border and Control (Button, TextBox, etc.)
0 commit comments