~zanneth/Amalgamation

08929b46182ae18509892ba7b59c7c134fdecca6 — Charles Magahern 5 years ago 6b6657a
Fix tournament bracket centering
1 files changed, 7 insertions(+), 3 deletions(-)

M Amalgamation/Source/Views/TournamentBracketView.swift
M Amalgamation/Source/Views/TournamentBracketView.swift => Amalgamation/Source/Views/TournamentBracketView.swift +7 -3
@@ 210,10 210,14 @@ class TournamentBracketView : UIView, UIScrollViewDelegate, Transitionable
            previousRoundLayoutInfo = curRoundLayoutInfo
        }
        
        // update content size
        // update scroll view properties
        _bracketScrollView.contentSize = maxSize
        
        _bracketScrollView.contentInset = UIEdgeInsets(top: 0.0, left: maxSize.width / 2.0, bottom: 0.0, right: 0.0)
        _bracketScrollView.contentInset = UIEdgeInsets(
            top: 0.0,
            left: maxSize.width / 4.0,
            bottom: 0.0,
            right: 0.0
        )
        
        // update timeline view frame
        let timelineFrame = CGRect(