mapbox-navigation-ios icon indicating copy to clipboard operation
mapbox-navigation-ios copied to clipboard

[Bug]: Guidance Card size is too big by default on ipad and landscape

Open S2Ler opened this issue 4 years ago • 0 comments

Mapbox Navigation SDK version

v2.0.0-rc.4

Steps to reproduce

Too big

  1. Run example app on iPad in landscape mode.
  2. Start a navigation with guidance cards
  3. Check the width of the guidance cards

Isn't fully shown

  1. Run example app on iPad in landscape mode.
  2. Start a navigation with guidance cards
  3. Add another app to a split screen.
  4. Check the width of the guidance cards

Expected behavior

Case 1

The width of the guidance cards should have sensible default (max size).

Case 2

Guidance cards just use 80% of UIScreen.main.bounds.width. It should take into account new iOS APIs. https://github.com/mapbox/mapbox-navigation-ios/blob/5382dc06ef592805dc17689ace4be423aa6d8ee9/Sources/MapboxNavigation/InstructionsCardViewController.swift#L60

Actual behavior

Case 1

Simulator Screen Shot - iPad mini (6th generation) - 2021-10-05 at 17 58 16

Case 2

Simulator Screen Shot - iPad mini (6th generation) - 2021-10-05 at 17 58 09

Is this a one-time issue or a repeatable issue?

repeatable

S2Ler avatar Oct 05 '21 15:10 S2Ler