Skip to content

Commit

Permalink
fix(ios): large title animation now works properly in a modal (#20703)
Browse files Browse the repository at this point in the history
fixes #20696
  • Loading branch information
liamdebeasi committed Mar 6, 2020
1 parent 314dbb1 commit ec4878a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/utils/transition/ios.transition.ts
Expand Up @@ -157,7 +157,7 @@ const animateBackButton = (rootAnimation: Animation, rtl: boolean, backDirection
};

const animateLargeTitle = (rootAnimation: Animation, rtl: boolean, backDirection: boolean, largeTitleEl: any, largeTitleBox: DOMRect, backButtonBox: DOMRect) => {
const TITLE_START_OFFSET = (rtl) ? `calc(100% - ${largeTitleEl.right}px)` : `${largeTitleEl.left}px`;
const TITLE_START_OFFSET = (rtl) ? `calc(100% - ${largeTitleBox.right}px)` : `${largeTitleBox.left}px`;
const START_TRANSLATE = (rtl) ? '-18px' : '18px';
const ORIGIN_X = (rtl) ? 'right' : 'left';

Expand Down

0 comments on commit ec4878a

Please sign in to comment.