Skip to content

Commit d7ec1fa

Browse files
[create-pull-request] automated change
1 parent 695e00c commit d7ec1fa

File tree

22 files changed

+104
-104
lines changed

22 files changed

+104
-104
lines changed

src/Controls/src/Core/ScrollView.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public View Content
146146
InternalChildren.Add(_content);
147147
_content.SizeChanged += ContentSizeChanged;
148148
}
149-
149+
150150
OnPropertyChanged();
151151
Handler?.UpdateValue(nameof(Content));
152152
}
@@ -163,9 +163,9 @@ void ContentSizeChanged(object sender, EventArgs e)
163163

164164
var margin = view.Margin;
165165
var frameSize = view.Frame.Size;
166-
166+
167167
// The ContentSize includes the margins for the content
168-
ContentSize = new Size(frameSize.Width + margin.HorizontalThickness,
168+
ContentSize = new Size(frameSize.Width + margin.HorizontalThickness,
169169
frameSize.Height + margin.VerticalThickness);
170170
}
171171

src/Controls/tests/DeviceTests/Elements/ScrollView/ScrollViewTests.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,14 @@ await handler.PlatformView.AttachAndRun(async () =>
6565

6666
});
6767
}
68-
68+
6969
[Theory]
7070
[InlineData(ScrollOrientation.Vertical, 100, 300, 0, 100)]
7171
[InlineData(ScrollOrientation.Horizontal, 0, 100, 100, 300)]
7272
[InlineData(ScrollOrientation.Both, 100, 300, 100, 300)]
73-
public async Task TestScrollContentMargin(ScrollOrientation orientation, int verticalMargin,
73+
public async Task TestScrollContentMargin(ScrollOrientation orientation, int verticalMargin,
7474
int expectedHeight, int horizontalMargin, int expectedWidth)
75-
{
75+
{
7676
var handler = await SetUpScrollView(orientation, verticalMargin: verticalMargin, horizontalMargin: horizontalMargin);
7777
var scroll = handler.VirtualView as ScrollView;
7878

@@ -87,19 +87,19 @@ await handler.PlatformView.AttachAndRun(async () =>
8787
});
8888
}
8989

90-
static async Task AssertContentSizeChanged(Task<bool> changed)
90+
static async Task AssertContentSizeChanged(Task<bool> changed)
9191
{
9292
await WaitAssert(() => changed.IsCompleted && changed.Result, timeout: 5000, message: "PropertyChanged event with PropertyName 'ContentSize' did not fire").ConfigureAwait(false);
9393
}
9494

95-
static async Task AssertContentSize(Func<Size> actual, Size expected)
95+
static async Task AssertContentSize(Func<Size> actual, Size expected)
9696
{
9797
await WaitAssert(() => CloseEnough(actual(), expected, 0.2), timeout: 5000, message: $"ContentSize was {actual()}, expected {expected}");
9898
}
9999

100-
static bool CloseEnough(Size a, Size b, double tolerance)
100+
static bool CloseEnough(Size a, Size b, double tolerance)
101101
{
102-
if (System.Math.Abs(a.Width - b.Width) > tolerance)
102+
if (System.Math.Abs(a.Width - b.Width) > tolerance)
103103
{
104104
return false;
105105
}
@@ -150,7 +150,7 @@ async Task<ScrollViewHandler> SetUpScrollView(ScrollOrientation orientation, int
150150
return await CreateHandlerAsync<ScrollViewHandler>(scroll);
151151
}
152152

153-
static async Task WaitAssert(Func<bool> predicate, int interval = 100, int timeout = 1000, string message = "")
153+
static async Task WaitAssert(Func<bool> predicate, int interval = 100, int timeout = 1000, string message = "")
154154
{
155155
System.Diagnostics.Stopwatch watch = new System.Diagnostics.Stopwatch();
156156
watch.Start();

src/Core/src/Handlers/ScrollView/ScrollViewHandler.Android.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ alone and the ScrollView will size to its content as usual. */
7878
return Context.FromPixels(platformView.MeasuredWidth, platformView.MeasuredHeight);
7979
}
8080

81-
static int AdjustSpecForAlignment(int measureSpec, Primitives.LayoutAlignment alignment)
81+
static int AdjustSpecForAlignment(int measureSpec, Primitives.LayoutAlignment alignment)
8282
{
8383
if (alignment == Primitives.LayoutAlignment.Fill && measureSpec.GetMode() == MeasureSpecMode.AtMost)
8484
{

src/Core/src/Handlers/ScrollView/ScrollViewHandler.Windows.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ static void UpdateContentPanel(IScrollView scrollView, IScrollViewHandler handle
119119
{
120120
currentPaddingLayer.Children.Clear();
121121
currentPaddingLayer.Children.Add(nativeContent);
122-
122+
123123
}
124124
}
125125
else

src/Core/src/Layouts/GridLayoutManager.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public override Size Measure(double widthConstraint, double heightConstraint)
2828

2929
public override Size ArrangeChildren(Rect bounds)
3030
{
31-
if (_gridStructure == null || NeedsRemeasure(bounds, Grid, _gridStructure))
31+
if (_gridStructure == null || NeedsRemeasure(bounds, Grid, _gridStructure))
3232
{
3333
_gridStructure = new GridStructure(Grid, bounds.Width, bounds.Height);
3434
}
@@ -58,14 +58,14 @@ public override Size ArrangeChildren(Rect bounds)
5858
return actual.AdjustForFill(bounds, Grid);
5959
}
6060

61-
static bool NeedsRemeasure(Rect bounds, IGridLayout grid, GridStructure structure)
61+
static bool NeedsRemeasure(Rect bounds, IGridLayout grid, GridStructure structure)
6262
{
6363
if (grid.VerticalLayoutAlignment == Primitives.LayoutAlignment.Fill
6464
&& structure.HeightConstraint != bounds.Height)
6565
{
6666
return true;
6767
}
68-
68+
6969
if (grid.HorizontalLayoutAlignment == Primitives.LayoutAlignment.Fill
7070
&& structure.WidthConstraint != bounds.Width)
7171
{
@@ -83,7 +83,7 @@ class GridStructure
8383
readonly IGridLayout _grid;
8484
readonly double _gridWidthConstraint;
8585
readonly double _gridHeightConstraint;
86-
86+
8787
readonly double _explicitGridHeight;
8888
readonly double _explicitGridWidth;
8989
readonly double _gridMaxHeight;

src/Core/src/Platform/Android/ContextExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public static void ShowKeyboard(this Context self, global::Android.Views.View vi
7272
service.ShowSoftInput(view, ShowFlags.Implicit);
7373
}
7474

75-
internal static float ToPixels (this View view, double dp)
75+
internal static float ToPixels(this View view, double dp)
7676
{
7777
if (s_displayDensity != float.MinValue)
7878
return (float)Math.Ceiling(dp * s_displayDensity);

src/Core/src/Platform/iOS/MauiLabel.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ public class MauiLabel : UILabel
1414
UIControlContentVerticalAlignment _verticalAlignment = UIControlContentVerticalAlignment.Center;
1515

1616
public UIEdgeInsets TextInsets { get; set; }
17-
internal UIControlContentVerticalAlignment VerticalAlignment
17+
internal UIControlContentVerticalAlignment VerticalAlignment
1818
{
1919
get => _verticalAlignment;
2020
set
2121
{
2222
_verticalAlignment = value;
2323
SetNeedsDisplay();
24-
}
24+
}
2525
}
2626

2727
public MauiLabel(RectangleF frame) : base(frame)
@@ -36,7 +36,7 @@ public override void DrawText(RectangleF rect)
3636
{
3737
rect = TextInsets.InsetRect(rect);
3838

39-
if (_verticalAlignment != UIControlContentVerticalAlignment.Center
39+
if (_verticalAlignment != UIControlContentVerticalAlignment.Center
4040
&& _verticalAlignment != UIControlContentVerticalAlignment.Fill)
4141
{
4242
rect = AlignVertical(rect);
@@ -45,7 +45,7 @@ public override void DrawText(RectangleF rect)
4545
base.DrawText(rect);
4646
}
4747

48-
RectangleF AlignVertical(RectangleF rect)
48+
RectangleF AlignVertical(RectangleF rect)
4949
{
5050
var frameSize = Frame.Size;
5151
var height = Lines == 1 ? Font.LineHeight : SizeThatFits(frameSize).Height;

src/Core/tests/DeviceTests/Handlers/ScrollView/ScrollViewHandlerTests.Android.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public async Task ContentInitializesCorrectly()
3434
for (int n = 0; n < scrollViewHandler.PlatformView.ChildCount; n++)
3535
{
3636
var platformView = scrollViewHandler.PlatformView.GetChildAt(n);
37-
37+
3838
// ScrollView on Android uses an intermediate ContentViewGroup to handle measurement/arrangement/padding
3939
if (platformView is ContentViewGroup contentViewGroup)
4040
{

src/Core/tests/DeviceTests/Handlers/ScrollView/ScrollViewHandlerTests.iOS.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public async Task ContentInitializesCorrectly()
3535
foreach (var platformView in scrollViewHandler.PlatformView.Subviews)
3636
{
3737
// ScrollView on iOS uses an intermediate ContentView to handle conetent measurement/arrangement
38-
if (platformView is ContentView contentView)
38+
if (platformView is ContentView contentView)
3939
{
4040
foreach (var content in contentView.Subviews)
4141
{

src/Templates/src/templates/maui-blazor/App.xaml.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
public partial class App : Application
44
{
5-
public App()
6-
{
7-
InitializeComponent();
5+
public App()
6+
{
7+
InitializeComponent();
88

9-
MainPage = new MainPage();
10-
}
9+
MainPage = new MainPage();
10+
}
1111
}

0 commit comments

Comments
 (0)