Last active
December 22, 2016 19:07
-
-
Save MarcosCobena/193a0ab48a77dea40744a8812248d586 to your computer and use it in GitHub Desktop.
LayoutSubviews() needed for MyWrappingView to have dynamic height
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public override void LayoutSubviews() | |
{ | |
base.LayoutSubviews(); | |
var availableWidth = _myWrappingView.Frame.Width; | |
_myWrappingView.SetPreferredMaxLayoutWidth((float)availableWidth); | |
base.LayoutSubviews(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment