Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Bug] IndicatorView shrinks on iOS 14 for HorizontalOptions Center and CenterAndExpand #12318

Closed
pmahend1 opened this issue Sep 30, 2020 · 3 comments · Fixed by #12654
Closed

Comments

@pmahend1
Copy link

Description

When IndicatorView is set with HorizontalOptions Center or CenterAndExpand it shrinks or hides.
This issue was not there in earlier versions Xamarin iOS. This doesnt happen for Android.

Steps to Reproduce

  1. Create a CarouselView and IndicatorView
  2. Link IndicatorView to CarouselView
  3. Set HorizontalOptions to Center for IndicatorView
  4. Run on iOS Simulator with OS 14.0
  5. Run on iOS Simulator with OS <14.0

Expected Behavior

IndicatorView should not shrink

Actual Behavior

IndicatorView shrinks horizontally for HorizontalOptions Center and CenterAndExpand.

Basic Information

  • Version with issue: 14.0
  • Last known good version: Xamarin.iOS < 14.0
  • IDE: Visual Studio Windows and Visual Studio for Mac
  • Platform Target Frameworks:
    • iOS: 14.0
  • Android Support Library Version:
  • Nuget Packages: Xamarin forms 4.8+
  • Affected Devices: iPhone and iPads

Screenshots

image

Reproduction Link

IndicatorViewIssue.zip

Workaround

Setting HorizontalOptions to Fill or FillAndExpand or dont set at all

@pmahend1 pmahend1 changed the title [Bug] IndicatorView shrinks on Xamarin iOS when HorizontalOptions Center and CenterAndExpand issue [Bug] IndicatorView shrinks on iOS 14 for HorizontalOptions Center and CenterAndExpand issue Sep 30, 2020
@pmahend1 pmahend1 changed the title [Bug] IndicatorView shrinks on iOS 14 for HorizontalOptions Center and CenterAndExpand issue [Bug] IndicatorView shrinks on iOS 14 for HorizontalOptions Center and CenterAndExpand Sep 30, 2020
@chamons
Copy link

chamons commented Sep 30, 2020

The repro and issue's text suggests this is a Xamarin.Forms issue, moving there for triage.

@chamons chamons transferred this issue from xamarin/xamarin-macios Sep 30, 2020
@Tommigun1980
Copy link

Tommigun1980 commented Oct 2, 2020

My indicator views disappeared completely after updating to iOS 14.

The workaround above works, but only if

  1. The indicator view is not inside a horizontal stack layout.
  2. The indicator view is not inside a grid where the column width is set to auto.

The only way I was able to display the indicator view in iOS 14 was by placing it in a vertical stack layout, or by hard-coding a column width if it's inside a grid.

Also, vertical options center on the indicator view no longer centers the indicator view on iOS 14, one has to use FillAndExpand.

@Tommigun1980
Copy link

Is this a duplicate of #12028 ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants