             ))
         button.setTitle(NSLocalizedString("Find your friends", comment: "Find your friends button title"), forState: .Normal)
         button.addTarget(self, action: Selector("findFriendsTapped"), forControlEvents: .TouchUpInside)
+        button.autoresizingMask = [.FlexibleWidth, .FlexibleHeight]
 
         let label = ElloLabel()
         label.frame = CGRect(

    override public func layoutSubviews() {
        super.layoutSubviews()
        findFriendsContainer.frame.origin.y = frame.size.height - findFriendsContainer.frame.height - bottomInset - ElloTabBar.Size.height
    }

    public func searchForText() {

        self.backgroundColor = UIColor.whiteColor()
        setupNavigationBar()
        searchControlsContainer = UIView(frame: self.frame.inset(sides: 15).atY(64).withHeight(50))
        searchControlsContainer.autoresizingMask = [.FlexibleWidth, .FlexibleBottomMargin]
        setupSearchField()
        if self.isSearchView { setupToggleButtons() }
        setupStreamView()
