Skip to content
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

Cannot update the height of the ScrollStackRow's contentView because it does not receive scrollStackRowSizeForAxis() event when its layout di change #14

Closed
malcommac opened this issue Oct 1, 2020 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@malcommac
Copy link
Owner

Once placed the contentView (custom view or controller's view does not matter) for a ScrollStackRow cannot receive further scrollStackRowSizeForAxis() of the ScrollStackContainableController protocol and cannot correctly resize its content.

This is especially true when you need to make a row's height equal to the content of the inner UITableView instance evaluated using autolayout. If the contentView is placed the height is calculated with a wrong size which is the not the real size of the table placed but the table loaded initially from nib.

This fix allows to call this method when layoutSubviews of the row is called.

    open override func layoutSubviews() {
        super.layoutSubviews()
        
        askForCutomizedSizeOfContentView(animated: false)
    }
@malcommac malcommac self-assigned this Oct 1, 2020
@malcommac malcommac modified the milestones: 1.0.2, 1.4.1 Oct 1, 2020
@malcommac malcommac added the bug Something isn't working label Oct 1, 2020
malcommac added a commit that referenced this issue Oct 1, 2020
… to update its height (useful when using autolayout and contentsize with UITableView)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant