nativescript-angular: ActionBar + Page transition are causing content displacement (iOS)

Hi,

with the transition to {N} 4.1 and nativescript-angular 6.0, I’m facing some issues coming from navigation animations.

I’m transitioning from a flat actionBar to a “regular” one, and the page is not correctly positionned.

with-animation

When I’m removing the animation, the position is correct.

without-animation

Seems like the animation calculations aren’t correct.

Another example I have is with a page having a negative marginTop (to display an image under the actionBar). The position is broken when navigating back to this page. All good without the animations though.

About this issue

Most upvoted comments

@jeremypele thank you for the detailed info. Confirming this one as a reproducible bug on iOS.

Steps to reproduce:

Happening only on iOS. The same will happen if we are navigating from page with ActionBar to page without any ActionBar

Related to https://github.com/NativeScript/NativeScript/issues/5768

Experiencing this same issue with Nativescript Vue as well.

Same here.

nativescript-angular: 6.06 tns-ios: 4.1.1

  1. First page hides the action-bar: this._page.actionBarHidden = true;
  2. Second page has normal action-bar with content on page
  3. When navigating from first page to second: the content will be pushed under the action-bar
  4. when navigating back with swipe, the UI of the action bar on second page break and is suddenly white

Can reproduce under iOS 10 and 11.

@NickIliev Easy to reproduce with a new app. I’ve updated the seed on this fork => https://github.com/jeremypele/NS-Issues-2018-II/tree/master/nativescript-angular/issue-1377/app

With the transition: the second page got a padding-top white and going back to the first one put the page content under the status bar.

Without the transition it works just fine.

@NickIliev Another issue, different but can be reproduced on the same demo app.

  1. Navigate to the second page (without transition)
  2. Start to drag the page to the left to go back but stay on the page

The header is broken and displays the first page actionbar style.

header-issue