-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HeaderHeight calculation pushes Header further down with each show #7
Comments
Yes, this is a use case that I didn't contemplate. It happens when the panel is reused to be shown/dismissed. I have a solution in mind, I will push a fix this weekend. |
Please @caffeineflo, reopen if you still have problems |
I'll try it tomorrow morning and report back. Thanks for the quick turnaround! |
@antoniocasero I might be missing some configuration to make this work. |
Some example code would be perfect
…Sent from my iPhone
On 29. Oct 2018, at 22:19, Florian Harr ***@***.***> wrote:
@antoniocasero I might be missing some configuration to make this work.
But when I click the panel now, it won't scroll up... I'll add a gif to it that makes it more clear
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Sorry I can not reproduce this issue. Maybe some missing values in the PanelConfiguration? |
The premise is relatively simple, looking at https://github.com/antoniocasero/Panels/blob/master/Sources/Panels.swift#L50 the safeAreaBottom is added to the PanelHeightConstraint every time show is being executed.
Now in my specific use case, I instantiate the Panelable VC with my parent VC and only show the Panel on didSelect, I dismiss it on didDeselect. With this behavior, the headerHeigh grows every time I execute
show
which ends up pushing my header further down each time.The examples show the same behavior (although, it's constraints break and recovery recovers the correct constraints).
The text was updated successfully, but these errors were encountered: