Skip to content
This repository has been archived by the owner on Oct 11, 2021. It is now read-only.

Issue with stacked layout location #41

Open
albarq opened this issue Dec 26, 2016 · 3 comments
Open

Issue with stacked layout location #41

albarq opened this issue Dec 26, 2016 · 3 comments

Comments

@albarq
Copy link

albarq commented Dec 26, 2016

Hi,

I have added your great work TGLstackedView to my app and it looks great ... but it has one strange issue ... I spend hours to fix it without hope...

1- When view appeared the position of cards is not correct based on giving information (is suppose to be 10 from top of collectionView) .... - even if tried to push the cards to top it stacked at same location-
2016-12-27-photo-00000062

2- When I exposed any items it will shows at same wrong location ... same as above
2016-12-27-photo-00000063

3- but when I click on unexposed items ... it will show all items but in CORRECT location ... to (10)
2016-12-27-photo-00000065

and also it even can scroll to down and up !!

I have spend hours to check parameters to control this behavior ... and tried to test example app .. but I could not solve my issue because in example app when you click on unexposed items is not behaving any thing "No gesture"

Note: I am using 100% code as i am not familiar with IB Story board

        let layout: TGLStackedLayout = TGLStackedLayout()            
        layout.itemSize = CGSize(width: view.bounds.width - 20, height: view.bounds.height-250)
        layout.layoutMargin = UIEdgeInsetsMake(10, 0, 0, 0);  //this is edge from collectionView "Gray Color"
        layout.topReveal = 50

self.collectionView?.frame = CGRect(x:0, y:80, width: self.view.bounds.width, height: self.view.bounds.height-130)
self.exposedPinningMode = .all
self.exposedItemSize = CGSize(width: view.bounds.width - 20, height: view.bounds.height-200)
self.exposedLayoutMargin = UIEdgeInsetsMake(10, 0, 0, 0);
self.exposedBottomOverlap = 25
self.view.backgroundColor = .red

Thank you

@gleue
Copy link
Owner

gleue commented Jan 4, 2017

Are your AutoLayout constraints as well as the VC's ExtendedEdges settings correct?

@gleue
Copy link
Owner

gleue commented Jan 4, 2017

And did you set the .exposed* properties of TGLStackedViewController?

@albarq
Copy link
Author

albarq commented Jan 4, 2017

:) I tried many times even to modify your source file and still this issue showing... why first picture starting from this point x,y while i have set them 0,10 only! if you want me to show particular lines on my code no problem :

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

No branches or pull requests

2 participants