TGLStackedViewController icon indicating copy to clipboard operation
TGLStackedViewController copied to clipboard

Issue with stacked layout location

Open albarq opened this issue 8 years ago • 3 comments

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

albarq avatar Dec 26 '16 21:12 albarq

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

gleue avatar Jan 04 '17 18:01 gleue

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

gleue avatar Jan 04 '17 18:01 gleue

:) 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 :

albarq avatar Jan 04 '17 19:01 albarq