• Yuwei Huang's avatar
    [CRD iOS] Fixing an infinite layout loop · d39cc774
    Yuwei Huang authored
    On iOS 9, it seems the [self updateFABConstraintsAnimated:NO] call in
    viewDidLayoutSubviews and [self layoutIfNeeded] call in
    updateFABConstraintsAnimated causes an infinite layout loop, which
    crashes the app right after the HostViewController appears due to
    stack overflow.
    
    This CL fixes this problem by removing the
    updateFABConstraintsAnimated: call from viewDidLayoutSubviews.
    
    
    Bug: 769533
    Change-Id: I311d9168db4bcae097455eb27a908c086de71572
    Reviewed-on: https://chromium-review.googlesource.com/687829Reviewed-by: default avatarScott Nichols <nicholss@chromium.org>
    Commit-Queue: Yuwei Huang <yuweih@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#505152}
    d39cc774
host_view_controller.mm 20.8 KB