Skip to content

Commit c8d77d3

Browse files
committed
Fix extra padding
1 parent 0446bca commit c8d77d3

File tree

4 files changed

+1
-8
lines changed

4 files changed

+1
-8
lines changed

src/Compatibility/Core/src/AppHostBuilderExtensions.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ static IAppHostBuilder SetupDefaults(this IAppHostBuilder builder)
9191
handlers.TryAddCompatibilityRenderer(typeof(ListView), typeof(ListViewRenderer));
9292
handlers.TryAddCompatibilityRenderer(typeof(CollectionView), typeof(CollectionViewRenderer));
9393
handlers.TryAddCompatibilityRenderer(typeof(CarouselView), typeof(CarouselViewRenderer));
94-
//handlers.TryAddCompatibilityRenderer(typeof(IndicatorView), typeof(IndicatorViewRenderer));
9594
handlers.TryAddCompatibilityRenderer(typeof(Path), typeof(PathRenderer));
9695
handlers.TryAddCompatibilityRenderer(typeof(Ellipse), typeof(EllipseRenderer));
9796
handlers.TryAddCompatibilityRenderer(typeof(Line), typeof(LineRenderer));

src/Controls/samples/Controls.Sample/ViewModels/CompatibilityViewModel.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ protected override IEnumerable<SectionModel> CreateItems() => new[]
2424
new SectionModel(typeof(FramePage), "Frame",
2525
"The Frame class derives from ContentView and displays a border, or frame, around its child."),
2626

27-
new SectionModel(typeof(IndicatorViewPage), "IndicatorView",
28-
"IndicatorView displays indicators that represent the number of items in a CarouselView. Set the CarouselView.IndicatorView property to the IndicatorView object to display indicators for the CarouselView."),
29-
3027
new SectionModel(typeof(ListViewPage), "ListView",
3128
"ListView derives from ItemsView and displays a scrollable list of selectable data items."),
3229

src/Controls/samples/Controls.Sample/ViewModels/ControlsViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ protected override IEnumerable<SectionModel> CreateItems() => new[]
5858
"A view that allows the user to select a time."),
5959

6060
new SectionModel(typeof(IndicatorPage), "IndicatorView",
61-
"A view that shows dots indicators."),
61+
"IndicatorView displays indicators. It can also represent the number of items in a CarouselView. Set the CarouselView.IndicatorView property to the IndicatorView object to display indicators for the CarouselView."),
6262
};
6363
}
6464
}

src/Controls/src/Core/IndicatorView.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,6 @@ protected override SizeRequest OnMeasure(double widthConstraint, double heightCo
118118
var padding = DefaultPadding;
119119
#if __IOS__
120120
padding += 7;
121-
if (IndicatorsShape == Controls.IndicatorShape.Square)
122-
padding += 2;
123-
124121
#endif
125122
var defaultSize = IndicatorSize + padding + padding;
126123
var items = GetMaximumVisible();

0 commit comments

Comments
 (0)