Skip to content

Commit

Permalink
Fix extra padding
Browse files Browse the repository at this point in the history
  • Loading branch information
rmarinho committed Aug 13, 2021
1 parent 0446bca commit c8d77d3
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 8 deletions.
1 change: 0 additions & 1 deletion src/Compatibility/Core/src/AppHostBuilderExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ static IAppHostBuilder SetupDefaults(this IAppHostBuilder builder)
handlers.TryAddCompatibilityRenderer(typeof(ListView), typeof(ListViewRenderer));
handlers.TryAddCompatibilityRenderer(typeof(CollectionView), typeof(CollectionViewRenderer));
handlers.TryAddCompatibilityRenderer(typeof(CarouselView), typeof(CarouselViewRenderer));
//handlers.TryAddCompatibilityRenderer(typeof(IndicatorView), typeof(IndicatorViewRenderer));
handlers.TryAddCompatibilityRenderer(typeof(Path), typeof(PathRenderer));
handlers.TryAddCompatibilityRenderer(typeof(Ellipse), typeof(EllipseRenderer));
handlers.TryAddCompatibilityRenderer(typeof(Line), typeof(LineRenderer));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ protected override IEnumerable<SectionModel> CreateItems() => new[]
new SectionModel(typeof(FramePage), "Frame",
"The Frame class derives from ContentView and displays a border, or frame, around its child."),

new SectionModel(typeof(IndicatorViewPage), "IndicatorView",
"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."),

new SectionModel(typeof(ListViewPage), "ListView",
"ListView derives from ItemsView and displays a scrollable list of selectable data items."),

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ protected override IEnumerable<SectionModel> CreateItems() => new[]
"A view that allows the user to select a time."),

new SectionModel(typeof(IndicatorPage), "IndicatorView",
"A view that shows dots indicators."),
"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."),
};
}
}
3 changes: 0 additions & 3 deletions src/Controls/src/Core/IndicatorView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,6 @@ protected override SizeRequest OnMeasure(double widthConstraint, double heightCo
var padding = DefaultPadding;
#if __IOS__
padding += 7;
if (IndicatorsShape == Controls.IndicatorShape.Square)
padding += 2;

#endif
var defaultSize = IndicatorSize + padding + padding;
var items = GetMaximumVisible();
Expand Down

0 comments on commit c8d77d3

Please sign in to comment.