Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fix animation, tray to browser
- Loading branch information
Showing
with
3 additions
and
0 deletions.
-
+3
−0
Client/Frontend/Browser/BrowserTrayAnimators.swift
|
|
@@ -43,7 +43,10 @@ private extension TrayToBrowserAnimator { |
|
|
let tabCollectionViewSnapshot = tabTray.collectionView.snapshotView(afterScreenUpdates: false)! |
|
|
tabTray.collectionView.alpha = 0 |
|
|
tabCollectionViewSnapshot.frame = tabTray.collectionView.frame |
|
|
/*Cliqz: Animation fix - View is below bg image (assumption) |
|
|
container.insertSubview(tabCollectionViewSnapshot, at: 0) |
|
|
*/ |
|
|
container.insertSubview(tabCollectionViewSnapshot, at: 10) // 10 is there just to make sure it is on top. |
|
|
|
|
|
// Create a fake cell to use for the upscaling animation |
|
|
let startingFrame = calculateCollapsedCellFrameUsingCollectionView(tabTray.collectionView, atIndex: expandFromIndex) |
|
|
|